### Question:
SLSUtils { public static String[] getRackHostName(String hostname) { hostname = hostname.substring(1); return hostname.split("/"); }  static String[] getRackHostName(String hostname); static Set<String> parseNodesFromRumenTrace(String jobTrace); static Set<String> parseNodesFromSLSTrace(String jobTrace); static Set<String> parseNodesFromNodeFile(String nodeFile);  }### Answer:
@Test public void testGetRackHostname() { String str = "/rack1/node1"; String rackHostname[] = SLSUtils.getRackHostName(str); Assert.assertEquals(rackHostname[0], "rack1"); Assert.assertEquals(rackHostname[1], "node1"); }