@Test
public void testNewInstance() throws Exception {

    short s = ClassUtils.newInstance(short.class);
    Assert.assertTrue(s == 0);
    Short s2 = ClassUtils.newInstance(Short.class);
    Assert.assertTrue(s2 == 0);
    int i = ClassUtils.newInstance(int.class);
    Assert.assertTrue(i == 0);
    Integer integer = ClassUtils.newInstance(Integer.class);
    Assert.assertTrue(integer == 0);
    long l = ClassUtils.newInstance(long.class);
    Assert.assertTrue(l == 0);
    Long l2 = ClassUtils.newInstance(Long.class);
    Assert.assertTrue(l2 == 0);
    double d = ClassUtils.newInstance(double.class);
    Assert.assertTrue(d == 0.0d);
    Double d2 = ClassUtils.newInstance(Double.class);
    Assert.assertTrue(d2 == 0.0d);
    float f = ClassUtils.newInstance(float.class);
    Assert.assertTrue(f == 0.0f);
    Float f2 = ClassUtils.newInstance(Float.class);
    Assert.assertTrue(f2 == 0.0f);
    byte b = ClassUtils.newInstance(byte.class);
    Assert.assertTrue(b == 0);
    Byte b2 = ClassUtils.newInstance(Byte.class);
    Assert.assertTrue(b2 == 0);
    char c = ClassUtils.newInstance(char.class);
    Assert.assertTrue(c == 0);
    Character c2 = ClassUtils.newInstance(Character.class);
    Assert.assertTrue(c2 == 0);
    boolean bl = ClassUtils.newInstance(boolean.class);
    Assert.assertFalse(bl);
    Boolean bl2 = ClassUtils.newInstance(Boolean.class);
    Assert.assertFalse(bl2);
    Assert.assertNotNull(ClassUtils.newInstance(TestMemberClass1.class));
    Assert.assertNotNull(ClassUtils.newInstance(TestMemberClass2.class));
    Assert.assertNotNull(ClassUtils.newInstance(TestMemberClass3.class));
    Assert.assertNotNull(ClassUtils.newInstance(TestMemberClass4.class));
    Assert.assertNotNull(ClassUtils.newInstance(TestMemberClass5.class));
    Assert.assertNotNull(ClassUtils.newInstance(TestMemberClass6.class));
    Assert.assertNotNull(ClassUtils.newInstance(TestClass1.class));
    Assert.assertNotNull(ClassUtils.newInstance(TestClass2.class));
    TestClass3 class3 = ClassUtils.newInstance(TestClass3.class);
    Assert.assertNotNull(class3);
    Assert.assertNull(class3.getName());
    Assert.assertEquals(class3.getAge(), 0);
}