@Test
public void shouldLoginUsingValidApiKey() throws Exception {

  // given
  configuration = new PropertiesConfiguration(VALID_CONF_FILE_LOCATION);
  // when
  janbanery = janbaneryFactory.connectUsing(configuration).toWorkspace(EXISTING_WORKSPACE);
  // then, should use API key mode
  AuthProvider usedAuthProvider = janbanery.getAuthMode();
  assertThat(usedAuthProvider).isInstanceOf(ApiKeyAuthProvider.class);
}