### Question:
BasicCredentials implements Credentials<Settings.Builder> { @Override public void applyTo(Settings.Builder clientSettings) { clientSettings.put(SHIELD_SECURITY_USER, username + ":" + password); } protected  BasicCredentials(String username, String password); @Override void applyTo(Settings.Builder clientSettings); @PluginBuilderFactory static Builder newBuilder();  }### Answer:
@Test public void objectIsConfiguredWhenAllParamsAreSet() { BasicCredentials BasicCredentials = createTestBuilder() .withUsername(TEST_USER) .withPassword(TEST_PASSWORD) .build(); Settings.Builder settings = Settings.builder(); BasicCredentials.applyTo(settings); Assert.assertEquals(TEST_USER + ":" + TEST_PASSWORD, settings.get(BasicCredentials.SHIELD_SECURITY_USER)); }