@Test
public void objectIsConfiguredWhenAllParamsAreSet() {

    // given
    BasicCredentials BasicCredentials = createTestBuilder()
            .withUsername(TEST_USER)
            .withPassword(TEST_PASSWORD)
            .build();
    HttpClientFactory.Builder settings = spy(createDefaultTestObjectBuilder());
    // when
    BasicCredentials.applyTo(settings);
    // then
    verify(settings).withDefaultCredentialsProvider((CredentialsProvider) notNull());
}