private void makeResponder() { Responder responder = authenticator.authenticate(context, request, privilegedResponder); responderType = responder.getClass(); }
@Test public void testAuthenticated() { authenticator.authenticated = true; makeResponder(); assertEquals(DummySecureResponder.class, responderType); }