@Test
public void testCreateConfig() {

    SW360ClientConfig config =
            SW360ClientConfig.createConfig(REST_URL, AUTH_URL, USER, PASSWORD, CLIENT_ID, CLIENT_PASS,
                    USER_TOKEN, httpClient, mapper);
    assertThat(config.getRestURL()).isEqualTo(REST_URL);
    assertThat(config.getAuthURL()).isEqualTo(AUTH_URL);
    assertThat(config.getUser()).isEqualTo(USER);
    assertThat(config.getPassword()).isEqualTo(PASSWORD);
    assertThat(config.getClientId()).isEqualTo(CLIENT_ID);
    assertThat(config.getClientPassword()).isEqualTo(CLIENT_PASS);
    assertThat(config.getToken()).isEqualTo(USER_TOKEN);
    assertThat(config.getHttpClient()).isEqualTo(httpClient);
    assertThat(config.getObjectMapper()).isEqualTo(mapper);
    assertThat(config.getBaseURI().toString()).isEqualTo(REST_URL);
}