### Question:
ServletHelper { public static String componentNameToPath(String name) { String[] segments = name.split(DASH); StringBuilder sb = new StringBuilder(); for(int i = 0; i < segments.length; i++) { if(i != 0) { sb.append(SLASH); } sb.append(segments[i]); } return sb.toString(); }  static Map<String,String> obtainParameters(SlingHttpServletRequest request); static String componentPathToName(String path); static String componentNameToPath(String name); static void echo(InputStream input, PrintWriter writer); static StringWriter asString(InputStream input); static final int BUFFER_LENGTH; }### Answer:
@Test public void testComponentNameToPath() throws Exception { String componentName = "it-components-myComponent"; String expected = "it/components/myComponent"; String answer = ServletHelper.componentNameToPath(componentName); assertEquals("Unexpected Component Path", expected, answer); }