### Question:
ShowClassDetailInfo { public static Object[] showAllDirectInstanceFieldsValue(Object object) throws IllegalAccessException { Field[] fields = object.getClass().getDeclaredFields(); Object[] objects = new Object[fields.length]; for (int i = 0; i < fields.length; i++) { Field field = fields[i]; field.setAccessible(true); Object obj = fields[i].get(object); objects[i] = obj; System.out.println(fields[i].get(object)); System.out.println(Modifier.toString(fields[i].getModifiers())); } return objects; }  static String showClassFullInfo(Class clazz); static String showClassPackage(Class clazz); static boolean hasSuperClass(Class clazz); static String showSuperClass(Class clazz); static boolean hasInterface(Class clazz); static String showClassImplInterfaces(Class clazz); static String showConstructs(Class clazz); static Object[] showAllDirectInstanceFieldsValue(Object object); static String showDeclaredField(Class clazz); static String showDeclaredMethod(Class clazz);  }### Answer:
@Test public void testShowAllDirectInstanceFieldsValue() throws Exception { ShowClassDetailInfo.showAllDirectInstanceFieldsValue(new TargetClass("changed private string value.")); }