@Override public Request authenticate(Route route, Response response) throws IOException { return authenticator.refresh(response); } }
@Override public Request authenticate(Route route, Response response) throws IOException { return authenticator.refresh(response); } }
@Test public void testAuthenticate_callsAuthenticatorRefresh() throws Exception { refreshAuthenticator.authenticate(null, response); verify(authenticator).refresh(eq(response)); } }