@Test
public void getAllFieldsOfClass() {

    assertNull(ReflectionUtil.getAllFieldsOfClass(null));
    assertNull(ReflectionUtil.getAllFieldsOfClass(Object.class));
    assertEquals(0, ReflectionUtil.getAllFieldsOfClass(List.class).length);
    Field[] fields = ReflectionUtil.getAllFieldsOfClass(String.class);
    assertTrue(fields.length > 0);
    Field[] instancefields = ReflectionUtil.getAllInstanceFields(String.class);
    assertTrue(instancefields.length > 0);
    assertTrue(fields.length - instancefields.length > 0);
}