### Question:
Converter { protected final LinkedList<FieldEntry> getAllFields(Class clazz) { LinkedList<FieldEntry> fieldList = new LinkedList<>(); if (clazz.getSuperclass() != null) { fieldList = getAllFields(clazz.getSuperclass()); } for (Field field : clazz.getDeclaredFields()) { Convert cfAnn = field.getAnnotation(Convert.class); if (isSuitable(cfAnn)) { fieldList.add(new FieldEntry(cfAnn.order(), field)); } } return fieldList; } Converter(Class dataClass); Class getDataClass();  }### Answer:
@Test public void getAllFields() throws Exception { Converter converter = new TestConverter(SamplePojo.class); Collection<Converter.FieldEntry> fields = converter.getAllFields(InnerSamplePojo.class); assertEquals(11, fields.size()); }