@Test
public void objectIsConfiguredWhenAllParamsAreSet() {

    // given
    BasicCredentials BasicCredentials = createTestBuilder()
            .withUsername(TEST_USER)
            .withPassword(TEST_PASSWORD)
            .build();
    Settings.Builder settings = Settings.builder();
    // when
    BasicCredentials.applyTo(settings);
    // then
    Assert.assertEquals(TEST_USER + ":" + TEST_PASSWORD, settings.get(BasicCredentials.XPACK_SECURITY_USER));
}