### Question:
ClassReflectionTools { public static Class getReturnTypeForGetter(Object obj, String methodName) throws ClassReflectionToolsException { Class discoveredClass = null; Class objClass = obj.getClass(); Method m; try { m = objClass.getMethod(methodName, new Class[]{}); } catch (NoSuchMethodException ex) { throw new ClassReflectionToolsException(ex); } catch (SecurityException ex) { throw new ClassReflectionToolsException(ex); } discoveredClass = m.getReturnType(); return discoveredClass; }  static Object newInstance(String byString); static T newInstance(Class<T> oClass); static Object invokeGetter(Object obj, String methodName); static Class getReturnTypeForGetter(Object obj, String methodName); static String getXmlRootElementName(Object obj); static String getXmlRootElementName(Class oClass); static String getXmlRootElementNameSpace(Object obj); static String getXmlRootElementNameSpace(Class oClass);  }### Answer:
@Test public void shouldMapPropertyClassesCorrectly() throws ClassReflectionToolsException { for (PropMap propMap : propMaps) { Class eClass = propMap.getPropClass(); String mName = propMap.getPropName(); Class gClass = ClassReflectionTools.getReturnTypeForGetter(rt, mName); Assert.assertEquals(eClass, gClass); } nop(); }