@Test public void testCanRefresh_whenContainsHeader_returnsFalse() { Response cannotRefresh = response.newBuilder().header(BaseRefreshableAuthenticator.HEADER_INVALID_SCOPES, "true") .build(); assertFalse(authenticator.canRefresh(cannotRefresh)); }
protected boolean canRefresh(Response response) { return response.header(HEADER_INVALID_SCOPES) == null; }
BaseRefreshableAuthenticator implements Authenticator { protected boolean canRefresh(Response response) { return response.header(HEADER_INVALID_SCOPES) == null; } }
BaseRefreshableAuthenticator implements Authenticator { protected boolean canRefresh(Response response) { return response.header(HEADER_INVALID_SCOPES) == null; }  }
BaseRefreshableAuthenticator implements Authenticator { protected boolean canRefresh(Response response) { return response.header(HEADER_INVALID_SCOPES) == null; }  @Override final Request refresh(Response response); }
BaseRefreshableAuthenticator implements Authenticator { protected boolean canRefresh(Response response) { return response.header(HEADER_INVALID_SCOPES) == null; }  @Override final Request refresh(Response response);  }