### Question:
JKSCertInfo implements CertInfo<Settings.Builder> { @Override public void applyTo(Settings.Builder clientConfigBuilder) { clientConfigBuilder.put(SHIELD_TRANSPORT_SSL_ENABLED, "true"); if (keystorePath != null) { clientConfigBuilder.put(SHIELD_SSL_KEYSTORE_PATH, keystorePath); } if (truststorePath != null) { clientConfigBuilder.put(SHIELD_SSL_TRUSTSTORE_PATH, truststorePath); } clientConfigBuilder.put(SHIELD_SSL_KEYSTORE_PASSWORD, keystorePassword); clientConfigBuilder.put(SHIELD_SSL_TRUSTSTORE_PASSWORD, truststorePassword); } protected  JKSCertInfo(String keystorePath, String keystorePassword, String truststorePath, String truststorePassword); @Override void applyTo(Settings.Builder clientConfigBuilder); @PluginBuilderFactory static Builder newBuilder();  }### Answer:
@Test public void paramsArePassedToConfiguredObject() { JKSCertInfo certInfo = createTestCertInfoBuilder() .withKeystorePath(TEST_KEYSTORE_PATH) .withKeystorePassword(TEST_KEYSTORE_PASSWORD) .withTruststorePath(TEST_TRUSTSTORE_PATH) .withTruststorePassword(TEST_TRUSTSTORE_PASSWORD) .build(); Settings.Builder settings = Settings.builder(); certInfo.applyTo(settings); Assert.assertEquals(TEST_KEYSTORE_PATH, settings.get(JKSCertInfo.SHIELD_SSL_KEYSTORE_PATH)); Assert.assertEquals(TEST_KEYSTORE_PASSWORD, settings.get(JKSCertInfo.SHIELD_SSL_KEYSTORE_PASSWORD)); Assert.assertEquals(TEST_TRUSTSTORE_PATH, settings.get(JKSCertInfo.SHIELD_SSL_TRUSTSTORE_PATH)); Assert.assertEquals(TEST_TRUSTSTORE_PASSWORD, settings.get(JKSCertInfo.SHIELD_SSL_TRUSTSTORE_PASSWORD)); }