### Question:
AsmUtil { static String getInternalName(String className) { int i = className.indexOf('.'); if (i < 0) { return className; } char[] str = className.toCharArray(); int len = str.length; for (; i < len; i++) { if (str[i] == '.') { str[i] = '/'; } } return new String(str); } private  AsmUtil();   }### Answer:
@Test void getInternalName() { assertEquals("java/lang/Integer", getInternalName(Integer.class)); assertEquals("java/lang/String", getInternalName(String.class)); assertEquals("java/util/Map", getInternalName(Map.class)); assertEquals("int", getInternalName(int.class)); assertEquals("boolean", getInternalName(boolean.class)); assertEquals("void", getInternalName(Void.TYPE)); assertEquals("java/lang/Void", getInternalName(Void.class)); assertEquals("[I", getInternalName(int[].class)); assertEquals("[[I", getInternalName(int[][].class)); assertEquals("[[[I", getInternalName(int[][][].class)); assertEquals("[Ljava/lang/Integer;", getInternalName(Integer[].class)); assertEquals("[[Ljava/lang/Integer;", getInternalName(Integer[][].class)); assertEquals("[[[Ljava/lang/Integer;", getInternalName(Integer[][][].class)); }