### Question:
ElasticsearchClientConfiguration { public static Settings getSettings(ConnectorClusterConfig configuration) { Map<String, String> setting = new HashMap<String, String>(); setting.put(NODE_DATA.getElasticSearchOption(), recoverdOptionValue(configuration.getConnectorOptions(), NODE_DATA)); setting.put(NODE_MASTER.getElasticSearchOption(), recoverdOptionValue(configuration.getConnectorOptions(), NODE_MASTER)); setting.put(TRANSPORT_SNIFF.getElasticSearchOption(), recoverdOptionValue(configuration.getConnectorOptions(), TRANSPORT_SNIFF)); setting.put(COERCE.getElasticSearchOption(), recoverdOptionValue(configuration.getConnectorOptions(), COERCE)); setting.put(DYNAMIC.getElasticSearchOption(), recoverdOptionValue(configuration.getConnectorOptions(), DYNAMIC)); setting.put(CLUSTER_NAME.getElasticSearchOption(),recoverdOptionValue(configuration.getClusterOptions(), CLUSTER_NAME)); return ImmutableSettings.settingsBuilder().put(setting).build(); } private  ElasticsearchClientConfiguration(); static Settings getSettings(ConnectorClusterConfig configuration); static TransportAddress[] getTransportAddress(ConnectorClusterConfig config);  }### Answer:
@Test public void testGetSettings() throws Exception { Map<String, String> connectorOptions = new HashMap<>(); connectorOptions.put(NODE_DATA.getManifestOption(), "true"); connectorOptions.put(NODE_MASTER.getManifestOption(), "true"); Map<String, String> clusterOptions = new HashMap<>(); clusterOptions.put(HOST.getManifestOption(), "localhost"); clusterOptions.put(PORT.getManifestOption(), "9301"); ConnectorClusterConfig configuration = new ConnectorClusterConfig(THE_CLUSTER_NAME, connectorOptions,clusterOptions); Settings result = ElasticsearchClientConfiguration.getSettings(configuration); assertNotNull("Result is not null", result); assertEquals("The node must be true", "true", result.get(NODE_DATA.getElasticSearchOption())); assertEquals("The node master must be true", "true", result.get(NODE_MASTER.getElasticSearchOption())); assertEquals("The transport sniff must be "+TRANSPORT_SNIFF.getDefaultValue()[0], TRANSPORT_SNIFF .getDefaultValue()[0], result.get(TRANSPORT_SNIFF.getElasticSearchOption())); assertEquals("The cluster name sniff must be Cluster Name", CLUSTER_NAME.getDefaultValue()[0], result.get(CLUSTER_NAME.getElasticSearchOption())); assertEquals("The cluster name sniff must be "+COERCE.getDefaultValue()[0], COERCE.getDefaultValue()[0], result.get(COERCE.getElasticSearchOption())); assertEquals("The cluster name sniff must be "+DYNAMIC.getDefaultValue()[0], DYNAMIC.getDefaultValue()[0], result.get(DYNAMIC.getElasticSearchOption())); }