@Test
public void test_getAllDeclaredFieldsFromSubClass() {

    List<Field> fields = getAllDeclaredFields(SubClassToExamine.class);
    assertEquals(4, fields.size());
    Collections.sort(fields, new FieldByNameComparator());
    assertEquals("stringBase", fields.get(0).getName());
    assertEquals("stringSub", fields.get(1).getName());
    assertEquals("textFieldBase", fields.get(2).getName());
    assertEquals("textFieldSub", fields.get(3).getName());
}