### Question:
Util { public static String primitiveToRefType(String clazz) { boolean primitive = isPrimitive(clazz); if (!primitive) { return clazz; } if ("char".equals(clazz)) { return Character.class.getSimpleName(); } else if ("int".equals(clazz)) { return Integer.class.getSimpleName(); } return clazz.substring(0, 1) .toUpperCase() + clazz.substring(1); } private  Util(); static void copy(InputStream in, OutputStream out); static String copyToString(InputStream in); static boolean isSet(@Nullable String s); static String escapeJava(String text); static String escapeHtmlXml(String text); static String getTemplate(Class<?> clazz); static String getLine(String s, int lineNumber); static String getCompileExceptionMessageWithoutLocation(CompileException compileException); static String primitiveToRefType(String clazz); static boolean isPrimitive(String clazz); static String sourceClassName(Class<?> clazz); static String sourceClassName(Field field); static String sourceClassName(Method method); static String sourceClassName(Class<?> clazz, @Nullable Type genericType); static String getArrayClass(String type); static Class<?> tryLoadClass(String type); static Method findMethod(Class<?> c, String methodName, int nArgs); @Nullable static Method findMethod(Class<?> c, String methodName, int nArgs, boolean forLambda); @SuppressWarnings("unchecked") static Map<K, V> map(Object... keyValuePairs); @SafeVarargs static List<T> list(T... items); @SafeVarargs static Set<T> set(T... items);  }### Answer:
@Test public void testPrimitiveToRefType() { assertThat(primitiveToRefType(boolean.class.getName())).isEqualTo("Boolean"); assertThat(primitiveToRefType(byte.class.getName())).isEqualTo("Byte"); assertThat(primitiveToRefType(char.class.getName())).isEqualTo("Character"); assertThat(primitiveToRefType(short.class.getName())).isEqualTo("Short"); assertThat(primitiveToRefType(int.class.getName())).isEqualTo("Integer"); assertThat(primitiveToRefType(long.class.getName())).isEqualTo("Long"); assertThat(primitiveToRefType(float.class.getName())).isEqualTo("Float"); assertThat(primitiveToRefType(String.class.getName())).isEqualTo(String.class.getName()); assertThat(primitiveToRefType(Locale.class.getName())).isEqualTo(Locale.class.getName()); }