### Question:
PEMCertInfo implements CertInfo<Settings.Builder> { @Override public void applyTo(Settings.Builder clientConfigBuilder) { clientConfigBuilder.put(XPACK_SECURITY_TRANSPORT_SSL_ENABLED, "true"); if (keyPath != null) { clientConfigBuilder.put(XPACK_SSL_KEY, keyPath); } if (keyPassphrase != null) { clientConfigBuilder.put(XPACK_SSL_KEY_PASSPHRASE, keyPassphrase); } if (clientCertPath != null) { clientConfigBuilder.put(XPACK_SSL_CERTIFICATE, clientCertPath); } if (caPath != null) { clientConfigBuilder.put(XPACK_SSL_CERTIFICATE_AUTHORITIES, caPath); } } protected  PEMCertInfo(String keyPath, String keyPassphrase, String clientCertPath, String caPath); @Override void applyTo(Settings.Builder clientConfigBuilder); @PluginBuilderFactory static PEMCertInfo.Builder newBuilder();  }### Answer:
@Test public void paramsArePassedToConfiguredObject() { PEMCertInfo certInfo = createTestCertInfoBuilder() .withKeyPath(TEST_KEY_PATH) .withKeyPassphrase(TEST_KEY_PASSPHRASE) .withClientCertPath(TEST_CLIENT_CERT_PATH) .withCaPath(TEST_CA_PATH) .build(); Settings.Builder settings = Settings.builder(); certInfo.applyTo(settings); Assert.assertEquals(TEST_KEY_PATH, settings.get(PEMCertInfo.XPACK_SSL_KEY)); Assert.assertEquals(TEST_KEY_PASSPHRASE, settings.get(PEMCertInfo.XPACK_SSL_KEY_PASSPHRASE)); Assert.assertEquals(TEST_CLIENT_CERT_PATH, settings.get(PEMCertInfo.XPACK_SSL_CERTIFICATE)); Assert.assertEquals(TEST_CA_PATH, settings.get(PEMCertInfo.XPACK_SSL_CERTIFICATE_AUTHORITIES)); }