ObjectUtils extends org.apache.commons.lang3.ObjectUtils { public static Object getFieldValue(Object object, String fieldName) { BeanWrapper beanWrapper = new BeanWrapperImpl(object); return beanWrapper.getPropertyValue(fieldName); } private  ObjectUtils(); static boolean isEmpty(Object obj); static boolean isNotEmpty(Object obj); static Class<?> getType(Object obj); static boolean contain(Object[] obj1, Object[] obj2); static boolean contains(Object[] destArray, Object srcObj); static Map<String, Object> objectToMap(Object obj); static Field[] getFields(Class<?> clazz); static Object getFieldValue(Object object, String fieldName); static Object mergerObject(Object first, Object second);  }
@Test public void testGetFieldValue() { Assert.assertEquals("test", ObjectUtils.getFieldValue(user, "name")); }