@Test
public void getAllFieldsForClassWithFoo() throws NoSuchFieldException, SecurityException {

    Set<Field> fooFields = ReflectUtil.getAllFieldsForClass(Foo.class, new Class<?>[] {});
    Assert.assertNotNull(fooFields);
    Assert.assertTrue(fooFields.contains(Foo.class.getDeclaredField("fooField")));
    Assert.assertTrue(fooFields.contains(Foo.class.getDeclaredField("fooIntField")));
}