@Test public void buildSession_containsMembersFromConstructor() throws Exception { Authenticator authenticator = mock(Authenticator.class); SessionConfiguration configuration = mock(SessionConfiguration.class); Session<Authenticator> session = new Session<Authenticator>(authenticator) { }; assertEquals(authenticator, session.getAuthenticator()); }
public T getAuthenticator() { return authenticator; }
Session { public T getAuthenticator() { return authenticator; } }
Session { public T getAuthenticator() { return authenticator; } Session(@Nonnull T authenticator); }
Session { public T getAuthenticator() { return authenticator; } Session(@Nonnull T authenticator); T getAuthenticator(); }
Session { public T getAuthenticator() { return authenticator; } Session(@Nonnull T authenticator); T getAuthenticator();  }