### Question:
ClientSettings { public void applyTo(Settings.Builder settings) { for (ClientSetting clientSetting : clientSettings) { settings.put(clientSetting.getName(), clientSetting.getValue()); } } protected  ClientSettings(List<ClientSetting> clientSettings); void applyTo(Settings.Builder settings); @PluginBuilderFactory static Builder newBuilder();  }### Answer:
@Test public void canApplySettings() { ClientSetting clientSetting = createDefaultTestClientSettingBuilder() .withName(TEST_NAME) .withValue(TEST_VALUE).build(); ClientSettings.Builder clientSettings = createDefaultTestClientSettingsBuilder() .withClientSettings(new ClientSetting[] { clientSetting }); ClientSettings settings = clientSettings.build(); Settings.Builder builder = Settings.builder(); settings.applyTo(builder); assertEquals(builder.get(TEST_NAME), TEST_VALUE); }