@Test
public void testGetAllDeclaredFields() {

  List<Field> fields = ReflectUtil.getAllDeclaredFields(SubclassTestObject.class);
  assertThat(fields).hasSize(4);
  assertFieldInList(fields, "subclassString", String.class);
  assertFieldInList(fields, "superclassTestString", String.class);
  assertFieldInList(fields, "subclassInnterClass", SubclassTestObject.SubClassInnerClass.class);
  assertFieldInList(fields, "superclassInnerClass", SuperclassTestObject.SuperClassInnerClass.class);
}