### Question:
ClassReflectionTools { public static String getXmlRootElementName(Object obj) { Class oClass = obj.getClass(); return getXmlRootElementName(oClass); }  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 shouldMapRootElementCorrectly() { Integer x = new Integer(-1); Assert.assertEquals(ClassReflectionTools.getXmlRootElementName(rt), "testRoot"); Assert.assertEquals(ClassReflectionTools.getXmlRootElementName(x), null); }