@Test
public void toClassTest() {

    Class clazz = ReflectionUtils.toClass("failed.Class");
    Assert.assertEquals(null, clazz);
    clazz = ReflectionUtils.toClass(getClass().getCanonicalName());
    Assert.assertEquals(getClass(), clazz);
    clazz = ReflectionUtils.toClass(null);
    Assert.assertEquals(null, clazz);
}