### Question:
ReflectionClassFactory implements XTypeFactory { @Override public XClass fromTypeMirror(TypeMirror typeMirror) { throw new UnsupportedOperationException("javax.lang.model.type.TypeMirror is only supported when processing annotations at compile time."); } ReflectionClassFactory(); @Override XClass fromClass(Class<?> c); @Override XClass fromTypeMirror(TypeMirror typeMirror);  }### Answer:
@Test public void testFromTypeMirror() { expectedException.expect(UnsupportedOperationException.class); expectedException.expectMessage("javax.lang.model.type.TypeMirror is only supported when processing annotations at compile time."); ReflectionClassFactory typeFactory = new ReflectionClassFactory(); DeclaredType typeMirrorMock = mock(DeclaredType.class); typeFactory.fromTypeMirror(typeMirrorMock); }