ProxySslConfig implements Serializable { public static ProxySslConfig fromMap(Map<?,?> map) { Builder b = new Builder(); Map<?, ?> unused = FlagUtils.setFieldsFromFlags(map, b); if (!unused.isEmpty()) log.warn("Unused flags when populating "+b+" (ignoring): "+unused); return b.build(); } ProxySslConfig(); protected  ProxySslConfig(Builder builder); static Builder builder(); static ProxySslConfig fromMap(Map<?,?> map); String getCertificateSourceUrl(); void setCertificateSourceUrl(String certificateSourceUrl); String getKeySourceUrl(); void setKeySourceUrl(String keySourceUrl); String getClientCertificateSourceUrl(); void setClientCertificateSourceUrl(String clientCertificateSourceUrl); String getCertificateDestination(); void setCertificateDestination(String certificateDestination); String getKeyDestination(); void setKeyDestination(String keyDestination); String getClientCertificateDestination(); void setClientCertificateDestination(String clientCertificateDestination); boolean getVerifyClient(); void setVerifyClient(boolean verifyClient); boolean getTargetIsSsl(); void setTargetIsSsl(boolean targetIsSsl); boolean getReuseSessions(); void setReuseSessions(boolean reuseSessions); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testFromMap() { ProxySslConfig config = TypeCoercions.coerce(MutableMap.of( "certificateSourceUrl", "file: "keySourceUrl", "file: "keyDestination", "dest.txt", "targetIsSsl", true, "reuseSessions", true), ProxySslConfig.class); Assert.assertEquals(config.getCertificateSourceUrl(), "file: Assert.assertEquals(config.getKeySourceUrl(), "file: Assert.assertEquals(config.getKeyDestination(), "dest.txt"); Assert.assertEquals(config.getTargetIsSsl(), true); Assert.assertEquals(config.getReuseSessions(), true); }