### Question:
ClassHelper { public static Class<?> resolvePrimitiveClassName(String name) { Class<?> result = null; if (name != null && name.length() <= 8) { result = (Class<?>) primitiveTypeNameMap.get(name); } return result; }  static Class<?> forNameWithThreadContextClassLoader(String name); static Class<?> forNameWithCallerClassLoader(String name, Class<?> caller); static ClassLoader getCallerClassLoader(Class<?> caller); static ClassLoader getClassLoader(Class<?> clazz); static ClassLoader getClassLoader(); static Class<?> forName(String name); static Class<?> forName(String name, ClassLoader classLoader); static Class<?> resolvePrimitiveClassName(String name); static String toShortString(Object obj); static String simpleClassName(Class<?> clazz); static boolean isSetter(Method method); static boolean isGetter(Method method); static boolean isPrimitive(Class<?> type); static Object convertPrimitive(Class<?> type, String value); static boolean isTypeMatch(Class<?> type, String value); static final String ARRAY_SUFFIX; }### Answer:
@Test public void testResolvePrimitiveClassName() throws Exception { assertThat(resolvePrimitiveClassName("boolean") == boolean.class, is(true)); assertThat(resolvePrimitiveClassName("byte") == byte.class, is(true)); assertThat(resolvePrimitiveClassName("char") == char.class, is(true)); assertThat(resolvePrimitiveClassName("double") == double.class, is(true)); assertThat(resolvePrimitiveClassName("float") == float.class, is(true)); assertThat(resolvePrimitiveClassName("int") == int.class, is(true)); assertThat(resolvePrimitiveClassName("long") == long.class, is(true)); assertThat(resolvePrimitiveClassName("short") == short.class, is(true)); assertThat(resolvePrimitiveClassName("[Z") == boolean[].class, is(true)); assertThat(resolvePrimitiveClassName("[B") == byte[].class, is(true)); assertThat(resolvePrimitiveClassName("[C") == char[].class, is(true)); assertThat(resolvePrimitiveClassName("[D") == double[].class, is(true)); assertThat(resolvePrimitiveClassName("[F") == float[].class, is(true)); assertThat(resolvePrimitiveClassName("[I") == int[].class, is(true)); assertThat(resolvePrimitiveClassName("[J") == long[].class, is(true)); assertThat(resolvePrimitiveClassName("[S") == short[].class, is(true)); }