### Question:
Converter { protected final Collection<FieldEntry> getFields(Class clazz) { LinkedList<FieldEntry> fieldList = getAllFields(clazz); Collections.sort(fieldList, new Comparator<FieldEntry>() { public int compare(FieldEntry o1, FieldEntry o2) { return o1.compareTo(o2); } }); return fieldList; } Converter(Class dataClass); Class getDataClass();  }### Answer:
@Test public void getFields() throws Exception { Converter converter = new TestConverter(SamplePojo.class); Collection<Converter.FieldEntry> fields = converter.getFields(SamplePojo.class); assertEquals(10, fields.size()); }