TestClass testClass = new TestClass(ClassesAnnotatedClass.class);
Map<String, String> properties = new HashMap<String, String>();
properties.put("customAnnotationContextClass",
"org.springframework.context.annotation.AnnotationConfigApplicationContext");
remoteConfiguration = new SpringIntegrationConfiguration(properties);
TestScopeApplicationContext result = instance.createApplicationContext(testClass);
assertNotNull("The result was null.", result);
assertTrue("The application context should be marked as closable.", result.isClosable());