### Question:
ReflectionClassFactory implements XTypeFactory { @Override public XClass fromClass(Class<?> c) { if (c == null) { return null; } XClass xclass = classCache.get(c); if (xclass == null) { xclass = new ReflectionClass(c); classCache.put(c, xclass); } return xclass; } ReflectionClassFactory(); @Override XClass fromClass(Class<?> c); @Override XClass fromTypeMirror(TypeMirror typeMirror);  }### Answer:
@Test public void testFromClass() { ReflectionClassFactory typeFactory = new ReflectionClassFactory(); XClass integerClass = typeFactory.fromClass(Integer.class); assertSame("java.lang.Integer", integerClass.getName()); assertFalse(integerClass.isArray()); }