@Test
public void installedAppWorkflowUsedWhenConfigured() throws Exception {

  configuration.setBoolean(getConfigKey(ENABLE_SERVICE_ACCOUNTS_SUFFIX), false);
  configuration.set(getConfigKey(CLIENT_ID_SUFFIX), "aClientId");
  configuration.set(getConfigKey(CLIENT_SECRET_SUFFIX), "aClientSecret");
  configuration.set(
      getConfigKey(OAUTH_CLIENT_FILE_SUFFIX), getStringPath("test-client-credential.json"));
  CredentialFactory credentialFactory = getCredentialFactory();
  Credential credential = credentialFactory.getCredential(TEST_SCOPES);
  assertThat(credential.getAccessToken()).isEqualTo("test-client-access-token");
  assertThat(credential.getRefreshToken()).isEqualTo("test-client-refresh-token");
}