### Question:
StreamUtil { public static String getDecisionAddressFormat(String[] host, String[] ports) { int numServers = Math.min(host.length, ports.length); StringBuilder strBuilder = new StringBuilder(); for (int i = 0; i < numServers; i++) { strBuilder.append(host[i]).append(":").append(ports[i]); if (i < numServers - 1) { strBuilder.append(","); } } return strBuilder.toString(); } private  StreamUtil(); static String createStreamName(Project project); static String createStreamName(TableName tableName); static String createOutgoingName(String streamName, String metaQueryId); static void insertRandomData(IStratioStreamingAPI stratioDecisionAPI, String streamName, Select select); static String getDecisionAddressFormat(String[] host, String[] ports);  }### Answer:
@Test public void getDecisionAddressFormatTest() { String decisionAddressFormat = StreamUtil.getDecisionAddressFormat(new String[] { "10.0.0.25" }, new String[] { "7500" }); Assert.assertEquals("The format is not the expected", "10.0.0.25:7500", decisionAddressFormat); String[] hosts = new String[] { "10.0.0.25", "10.200.0.35" }; String[] ports = new String[] { "7500", "25000" }; decisionAddressFormat = StreamUtil.getDecisionAddressFormat(hosts, ports); Assert.assertEquals("The format is not the expected", "10.0.0.25:7500,10.200.0.35:25000", decisionAddressFormat); }