### Question:
PropertyUtil { public static Object getProperty(Object bean, String name) { try { Class<?> clazz = Thread.currentThread().getContextClassLoader().loadClass("org.apache.commons.beanutils.PropertyUtils"); Method method = clazz.getMethod("getProperty", Object.class, String.class); return method.invoke(null, bean, name); } catch (InvocationTargetException e) { if (e.getCause() instanceof NoSuchMethodException) { logger.debug("Getter doesn't exist for the property {} in the class {}", name, bean.getClass()); return null; } throw new ActiveJpaException("Failed while invoking the getter for the property " + name + " in the class " + bean.getClass(), e); } catch (Exception e) { throw new ActiveJpaException("Failed while invoking the getter for the property " + name + " in the class " + bean.getClass(), e); } } private  PropertyUtil(); static boolean isSimpleProperty(Class<?> clazz); static boolean isSimpleValueType(Class<?> clazz); static boolean isCollectionProperty(Type type, boolean includeMaps); static boolean isCollectionProperty(Class<?> clazz, boolean includeMaps); static boolean isMapProperty(Type type); static boolean isMapProperty(Class<?> clazz); static Class<?> getCollectionElementType(Type type); static Object getProperty(Object bean, String name); static void setProperty(Object bean, String name, Object value); static Method getReadMethod(Object bean, String name); static Boolean isPrimitiveOrWrapper(Class<?> clazz);  }### Answer:
@Test public void shouldGetPropertyValue() { DummyClass clazz = new DummyClass(); clazz.wrapperInt = 100; assertEquals(PropertyUtil.getProperty(clazz, "wrapperInt"), 100); }
@Test public void shouldNotGetPropertyValue() { DummyClass clazz = new DummyClass(); assertNull(PropertyUtil.getProperty(clazz, "nonExistingField")); }