### Question:
ClassUtil { public static <T> Field getDeclaredField(Class<T> clazz, String name) throws WrapException { assertNotNull(clazz, name); try { return clazz.getDeclaredField(name); } catch (SecurityException | NoSuchFieldException e) { throw new WrapException(e); } }  static T newInstance(Class<T> clazz); static Constructor<T> getConstructor(Class<T> clazz, Class<?>... parameterTypes); static Method getMethod(Class<T> clazz, String name, Class<?>... parameterTypes); static Method getDeclaredMethod(
      Class<T> clazz, String name, Class<?>... parameterTypes); static Field getDeclaredField(Class<T> clazz, String name); static String getPackageName(String binaryName); static List<String> getEnclosingNames(String binaryName); static String getSimpleName(String binaryName); static Class<?> toBoxedPrimitiveTypeIfPossible(Class<?> clazz); static R traverse(Class<?> clazz, Function<Class<?>, R> f);  }### Answer:
@Test public void testGetDeclaredField() throws Exception { Field field = ClassUtil.getDeclaredField(getClass(), "fName"); assertNotNull(field); }