HaloAuthenticator implements Authenticator { @NonNull public synchronized Credentials getCredentials() { Credentials credentials; if (mUserCredentials != null) { credentials = mUserCredentials; } else { credentials = mClientCredentials; } return credentials; } HaloAuthenticator(@NonNull HaloFramework framework,
                             @NonNull HaloManagerApi managerApi,
                             @NonNull HaloSessionManager sessionManager,
                             @NonNull Credentials credentials); @Override synchronized Request authenticate(Route route, Response response); void setAuthenticationRecover(@NonNull AuthenticationRecover authenticationRecover); @Nullable AuthenticationRecover getAuthenticationRecover(); synchronized void setCredentials(@NonNull Credentials credentials); void logout(); @NonNull synchronized Credentials getCredentials(); void flushSession(); HaloSessionManager getSessionManager(); @Keep
    static final String HALO_SESSION_NAME; static final String AUTHENTICATION_HEADER; }
@Test public void thatCredentialsExist() { assertThat(mAuthenticator.getCredentials()).isNotNull(); }