### Question:
FieldUtils { public static Field[] scanAllField(final Class<?> klass, List<Class<? extends Annotation>> annotations) { Map<String, Field> fieldMap = new LinkedHashMap<String, Field>(); scanField(klass, fieldMap, annotations); return fieldMap.values().toArray(new Field[fieldMap.size()]); }  static void writeField(final Object target, final Field field, final Object value); static void writeField(final Object target, final String fieldName, final Object value); static Object readField(final Object target, final Field field); static Field getField(final Class<?> klass, String fieldName); static List<Field> getAllField(final Class<?> klass); static String genGetMethodName(Field field); static String genSetMethodName(Field field); static Field[] scanAllField(final Class<?> klass, List<Class<? extends Annotation>> annotations); static void injectionStaticField(Map<String, T> templates, Class<?> target, Function<T, String> fun);  }### Answer:
@Test public void testScanAllField() { assertTrue(FieldUtils.scanAllField(FieldUtilsTest.class, Arrays.asList(TplAttr.class)).length == 1); }