@Test
public void testGetClass() {

    Assert.assertEquals(String.class, ClassTypeUtils.getClass("java.lang.String"));
    Assert.assertEquals(int.class, ClassTypeUtils.getClass("int"));
    Assert.assertEquals(boolean.class, ClassTypeUtils.getClass("boolean"));
    Assert.assertEquals(byte.class, ClassTypeUtils.getClass("byte"));
    Assert.assertEquals(char.class, ClassTypeUtils.getClass("char"));
    Assert.assertEquals(double.class, ClassTypeUtils.getClass("double"));
    Assert.assertEquals(float.class, ClassTypeUtils.getClass("float"));
    Assert.assertEquals(int.class, ClassTypeUtils.getClass("int"));
    Assert.assertEquals(long.class, ClassTypeUtils.getClass("long"));
    Assert.assertEquals(short.class, ClassTypeUtils.getClass("short"));
    Assert.assertEquals(void.class, ClassTypeUtils.getClass("void"));
    // 本地类
    class LocalType {
    }
    Assert.assertEquals(anonymous.getClass(),
        ClassTypeUtils.getClass("com.alipay.sofa.rpc.common.utils.ClassTypeUtilsTest$1"));
    Assert.assertEquals(LocalType.class,
        ClassTypeUtils.getClass("com.alipay.sofa.rpc.common.utils.ClassTypeUtilsTest$1LocalType"));
    Assert.assertEquals(MemberClass.class,
        ClassTypeUtils.getClass("com.alipay.sofa.rpc.common.utils.ClassTypeUtilsTest$MemberClass"));
    Assert.assertEquals(StaticClass.class, ClassTypeUtils.getClass("com.alipay.sofa.rpc.common.utils.StaticClass"));
    Assert.assertEquals(String[].class, ClassTypeUtils.getClass("java.lang.String[]"));
    Assert.assertEquals(boolean[].class, ClassTypeUtils.getClass("boolean[]"));
    Assert.assertEquals(byte[].class, ClassTypeUtils.getClass("byte[]"));
    Assert.assertEquals(char[].class, ClassTypeUtils.getClass("char[]"));
    Assert.assertEquals(double[].class, ClassTypeUtils.getClass("double[]"));
    Assert.assertEquals(float[].class, ClassTypeUtils.getClass("float[]"));
    Assert.assertEquals(int[].class, ClassTypeUtils.getClass("int[]"));
    Assert.assertEquals(long[].class, ClassTypeUtils.getClass("long[]"));
    Assert.assertEquals(short[].class, ClassTypeUtils.getClass("short[]"));
    Assert.assertEquals(Array.newInstance(anonymous.getClass(), 2, 3).getClass(),
        ClassTypeUtils.getClass("com.alipay.sofa.rpc.common.utils.ClassTypeUtilsTest$1[][]"));
    Assert.assertEquals(LocalType[][].class,
        ClassTypeUtils.getClass("com.alipay.sofa.rpc.common.utils.ClassTypeUtilsTest$1LocalType[][]"));
    Assert.assertEquals(MemberClass[].class,
        ClassTypeUtils.getClass("com.alipay.sofa.rpc.common.utils.ClassTypeUtilsTest$MemberClass[]"));
    Assert.assertEquals(StaticClass[].class,
        ClassTypeUtils.getClass("com.alipay.sofa.rpc.common.utils.StaticClass[]"));
    Assert.assertEquals(int[][].class, ClassTypeUtils.getClass("int[][]"));
    Assert.assertEquals(String[].class, ClassTypeUtils.getClass(String[].class.getName()));
    Assert.assertEquals(boolean[].class, ClassTypeUtils.getClass(boolean[].class.getName()));
    Assert.assertEquals(byte[].class, ClassTypeUtils.getClass(byte[].class.getName()));
    Assert.assertEquals(char[].class, ClassTypeUtils.getClass(char[].class.getName()));
    Assert.assertEquals(double[].class, ClassTypeUtils.getClass(double[].class.getName()));
    Assert.assertEquals(float[].class, ClassTypeUtils.getClass(float[].class.getName()));
    Assert.assertEquals(int[].class, ClassTypeUtils.getClass(int[].class.getName()));
    Assert.assertEquals(long[].class, ClassTypeUtils.getClass(long[].class.getName()));
    Assert.assertEquals(short[].class, ClassTypeUtils.getClass(short[].class.getName()));
    Assert.assertEquals(int[][].class, ClassTypeUtils.getClass(int[][].class.getName()));
}