    @Category(IntegrationTests.class)
    @Ignore("JavaFX fails if Application.launch() is called more than once; the other test is more important.")
    @Test public void nullPointerException() {

        expectedExceptionRef.set(new NullPointerException());
        final String[] args = {UserAgentImpl.REQUEST_AUTHORIZATION_CODE};
        JavaFx.RUNNABLE_FACTORY_OVERRIDE = new RunnableFactory<JavaFx>() {
            public Runnable create(final JavaFx javaFx) {
                return new Runnable() {
                    public void run() {
                        try {
                            javaFx.requestAuthorizationCode(null, null);
                        }
                        catch (final Exception e) {
                            actualExceptionRef.set(e);
                        }
                        finally {
                            Platform.exit();
                        }
                    }
                };
            }
        };

        LauncherImpl.launchApplication(JavaFx.class, args);
    }