@Test
public void getPrimitiveType() {

    assertEquals(int.class, ClassUtil.getPrimitiveType("int"));
    assertEquals(long.class, ClassUtil.getPrimitiveType("long"));
    assertEquals(short.class, ClassUtil.getPrimitiveType("short"));
    assertEquals(double.class, ClassUtil.getPrimitiveType("double"));
    assertEquals(float.class, ClassUtil.getPrimitiveType("float"));
    assertEquals(char.class, ClassUtil.getPrimitiveType("char"));
    assertEquals(byte.class, ClassUtil.getPrimitiveType("byte"));
    assertEquals(boolean.class, ClassUtil.getPrimitiveType("boolean"));
    assertEquals(void.class, ClassUtil.getPrimitiveType("void"));
    assertEquals(int.class, ClassUtil.getPrimitiveType("java.lang.Integer"));
    assertEquals(long.class, ClassUtil.getPrimitiveType("java.lang.Long"));
    assertEquals(short.class, ClassUtil.getPrimitiveType("java.lang.Short"));
    assertEquals(double.class, ClassUtil.getPrimitiveType("java.lang.Double"));
    assertEquals(float.class, ClassUtil.getPrimitiveType("java.lang.Float"));
    assertEquals(char.class, ClassUtil.getPrimitiveType("java.lang.Character"));
    assertEquals(byte.class, ClassUtil.getPrimitiveType("java.lang.Byte"));
    assertEquals(boolean.class, ClassUtil.getPrimitiveType("java.lang.Boolean"));
    assertEquals(void.class, ClassUtil.getPrimitiveType("java.lang.Void"));
    assertEquals(null, ClassUtil.getPrimitiveType("java.lang.String"));
    assertEquals(int.class, ClassUtil.getPrimitiveType(Integer.class));
    assertEquals(long.class, ClassUtil.getPrimitiveType(Long.class));
    assertEquals(short.class, ClassUtil.getPrimitiveType(Short.class));
    assertEquals(double.class, ClassUtil.getPrimitiveType(Double.class));
    assertEquals(float.class, ClassUtil.getPrimitiveType(Float.class));
    assertEquals(char.class, ClassUtil.getPrimitiveType(Character.class));
    assertEquals(byte.class, ClassUtil.getPrimitiveType(Byte.class));
    assertEquals(boolean.class, ClassUtil.getPrimitiveType(Boolean.class));
    assertEquals(void.class, ClassUtil.getPrimitiveType(Void.class));
    assertEquals(null, ClassUtil.getPrimitiveType(String.class));
}