public void testServerDescriptorFactory() {
EntityResolver resolver = runtime.getDataDomain().getEntityResolver();
resolver.getClassDescriptorMap().clearDescriptors();
ClassDescriptor descriptor = mock(ClassDescriptor.class);
ClassDescriptorFactory factory = mock(ClassDescriptorFactory.class);
when(factory.getDescriptor("MtTable1")).thenReturn(descriptor);
resolver.getClassDescriptorMap().addFactory(factory);
try {
ClassDescriptor resolved = resolver.getClassDescriptor("MtTable1");
assertNotNull(resolved);