### Question:
ClassNameUtils { public static String sourceToBinary(String sourceName) { String sourceBaseName = sourceName.replace("[]", ""); StringBuilder sb = new StringBuilder(); int dimensionCount = (sourceName.length() - sourceBaseName.length()) / 2; for (int i = 0; i < dimensionCount; i++) { sb.append('['); } String internalPrimitive = internalPrimitiveToBinaryName.inverse().get(sourceBaseName); if (internalPrimitive != null) { if (dimensionCount > 0) { sb.append(internalPrimitive); } else { sb.append(internalPrimitiveToBinaryName.get(internalPrimitive)); } } else { if (dimensionCount > 0) { sb.append('L').append(sourceBaseName).append(';'); } else { sb.append(sourceBaseName); } } return sb.toString(); }  static String binaryToInternal(String binaryName); static String getComponentBase(String className); static String getComponentType(String className); static int getDimensionCount(String className); static String getPackageName(String className); static @Nullable String getPrimitive(String className); static Class<?> getPrimitiveClass(String className); static @Nullable String getWrapper(String className); static String internalToBinary(String internalName); static String internalToSource(String internalName); static boolean isObject(String type); static boolean isPrimitive(String className); static boolean isPrimitiveOrWrapper(String className); static boolean isWrapper(String className); static String sourceToBinary(String sourceName); static String sourceToInternal(String sourceName); static String toFormat(String className, TypeFormat format); static String toInternal(Class<?> klazz); static List<String> toInternal(Class<?>... classes); static ReferenceType guessReferenceType(@Nonnull String s);  }### Answer:
@Test public void canConvertSourceToBinary() { for (Entry<String, String> entry : internalNameToSourceName.entrySet()) { String className = entry.getValue(); String expected = internalNameToBinaryName.get(entry.getKey()); String actual = ClassNameUtils.sourceToBinary(className); assertEquals(expected, actual); } }