QueryCacheFactory qcFactory = domain.getQueryCacheFactory();
assertNotNull(qcFactory);
assertTrue(qcFactory instanceof MapQueryCacheFactory);
domain = new DataDomain("Y");
MockQueryCacheFactory f2 = new MockQueryCacheFactory();
domain.setQueryCacheFactory(f2);
assertSame(f2, domain.getQueryCacheFactory());
if (!(domain.getQueryCache() instanceof MockQueryCache)) {
fail("Unknown query cache created: " + domain.getQueryCache());
}