AbstractLoginModule implements LoginModule { @Override public boolean abort() throws LoginException { clearState(); return true; }  @Override void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options); @Override boolean logout(); @Override boolean abort(); static final String SHARED_KEY_CREDENTIALS; static final String SHARED_KEY_LOGIN_NAME; static final String SHARED_KEY_ATTRIBUTES; static final String SHARED_KEY_PRE_AUTH_LOGIN; }
@Test public void testAbort() throws LoginException { AbstractLoginModule loginModule = initLoginModule(TestCredentials.class, ImmutableMap.of()); assertTrue(loginModule.abort()); }