@Test
public void test_getAllDeclaredFieldsFromSubClassByAnnotation() {

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