GuestLoginModule implements LoginModule { @Override public boolean abort() { guestCredentials = null; return true; }  @Override void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options); @Override boolean login(); @Override boolean commit(); @Override boolean abort(); @Override boolean logout();  }
@Test public void testAbort() throws LoginException { assertTrue(guestLoginModule.abort()); }