private Config assertInjected(String testCase) {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:org/springframework/data/neo4j/config/DataGraphNamespaceHandlerTests" + testCase + "-context.xml");
try {
Config config = ctx.getBean("config", Config.class);
Neo4jTemplate template = config.neo4jTemplate;
Assert.assertNotNull("template", template);
GraphDatabaseAPI graphDatabaseService = (GraphDatabaseAPI) template.getGraphDatabaseService();
String fileSeparator = "target" + System.getProperty("file.separator") + "config-test";
Assert.assertTrue("store-dir", graphDatabaseService.getStoreDir().endsWith(fileSeparator));
Assert.assertNotNull("graphDatabaseService",config.graphDatabaseService);
Assert.assertNotNull("transactionManager",config.transactionManager);
// config.graphDatabaseService.shutdown();