@Test
public void shouldLoginUsingPlainApiKey() throws Exception {

  // given
  Properties props = new Properties();
  props.load(new FileInputStream(VALID_CONF_FILE_LOCATION));
  String apiKey = props.getProperty(PropertiesConfiguration.P_APIKEY);
  // when
  janbanery = janbaneryFactory.connectUsing(apiKey).toWorkspace(EXISTING_WORKSPACE);
  // then, should use API key mode
  AuthProvider usedAuthProvider = janbanery.getAuthMode();
  assertThat(usedAuthProvider).isInstanceOf(ApiKeyAuthProvider.class);
}