Class<?> persistentClass = getBean(ctx, "TestPersistentClass");
assertEquals(dc,persistentClass);
GrailsDomainClassValidator validator = getBean(ctx, "TestValidator");
assertTrue(validator.supports(dc));
GroovyObject controller = getBean(ctx, "TestController");
assertEquals(c,controller.getClass());
}