### Question:
ConnectionOptions { public static Builder builder() { return new Builder(); } private  ConnectionOptions(boolean isUseSystemPropertes, int maxConnections, boolean isAllowSelfSignedCertificates, boolean isDisableHostnameVerification, int connectionTimeoutMs,  int requestTimeoutMs, int socketTimeoutMs, String proxyHost, int proxyPort, String proxyProtocol, String proxyUsername, String proxyPassword); boolean isUseSystemPropertes(); boolean isAllowSelfSignedCertificates(); boolean isDisableHostnameVerification(); int getMaxConnections(); int getConnectionTimeoutMs(); int getRequestTimeoutMs(); int getSocketTimeoutMs(); String getProxyHost(); int getProxyPort(); String getProxyProtocol(); String getProxyUsername(); String getProxyPassword(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); Map<String, String> toServiceFactoryParameters(); static ConnectionOptions fromServiceFactoryParameters(Map<?, ?> parameters); static Builder builder(); static final String PARAM_USE_SYSTEM_PROPERTIES; static final String PARAM_ALLOW_SELF_SIGNED_CERTIFICATES; static final String PARAM_DISABLE_HOSTNAME_VERIFICATION; static final String PARAM_PROXY_HOST; static final String PARAM_PROXY_PORT; static final String PARAM_PROXY_PROTOCOL; static final String PARAM_PROXY_USERNAME; static final String PARAM_PROXY_PASSWORD; static final String PARAM_CONNECTION_TIMEOUT_MS; static final String PARAM_REQUEST_TIMEOUT_MS; static final String PARAM_SOCKET_TIMEOUT_MS; static final String PARAM_MAX_CONNECTIONS; static final int MAX_CONNECTIONS_DEFAULT; static final ConnectionOptions DEFAULT; }### Answer:
@Test public void testBuilder() { ConnectionOptions.Builder builder = ConnectionOptions.builder(); builder.allowSelfSignedCertificates(true); builder.disableHostnameVerification(false); builder.maxConnections(10); builder.connectionTimeoutMs(100); builder.requestTimeoutMs(200); builder.socketTimeoutMs(300); builder.proxyHost("proxyHost"); builder.proxyPort(1234); builder.proxyUsername("proxyUser"); builder.proxyPassword("proxyPassword"); builder.proxyProtocol("https:"); ConnectionOptions options = builder.build(); Assert.assertEquals(true, options.isAllowSelfSignedCertificates()); Assert.assertEquals(false, options.isDisableHostnameVerification()); Assert.assertEquals(10, options.getMaxConnections()); Assert.assertEquals(100, options.getConnectionTimeoutMs()); Assert.assertEquals(200, options.getRequestTimeoutMs()); Assert.assertEquals(300, options.getSocketTimeoutMs()); Assert.assertEquals("proxyHost", options.getProxyHost()); Assert.assertEquals(1234, options.getProxyPort()); Assert.assertEquals("proxyUser", options.getProxyUsername()); Assert.assertEquals("proxyPassword", options.getProxyPassword()); Assert.assertEquals("https:", options.getProxyProtocol()); }