### Question:
FieldUtil { public static boolean isPublic(Field field) { assertNotNull(field); return Modifier.isPublic(field.getModifiers()); }  static Object get(Field field, Object target); static void set(Field field, Object target, Object value); static void setAccessible(Field field, boolean flag); static boolean isPublic(Field field);  }### Answer:
@Test public void testIsPublic() throws Exception { Field aaa = FieldUtilTest.class.getField("aaa"); assertTrue(FieldUtil.isPublic(aaa)); Field bbb = FieldUtilTest.class.getDeclaredField("bbb"); assertFalse(FieldUtil.isPublic(bbb)); }