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