PreAuthContext implements LoginContext { @Override public void login() { } PreAuthContext(Subject subject); @Override Subject getSubject(); @Override void login(); @Override void logout();  }
@Test public void testLogin() { ctx.login(); assertSame(subject, ctx.getSubject()); }