public void testPropertiesArePassed() throws Exception {
Properties properties = new Properties();
properties.put( Neo4jProperties.DATABASE_PATH, Neo4jTestHelper.dbLocation() );
properties.put( InternalProperties.NEO4J_GRAPHDB_FACTORYCLASS, MockGraphServiceFactory.class.getName() );
Neo4jGraphDatabaseServiceFactoryProvider graphService = new Neo4jGraphDatabaseServiceFactoryProvider();
MockGraphDatabaseService db = (MockGraphDatabaseService) graphService.load( properties, new ClassLoaderServiceImpl() ).create();
db.shutdown();
assertTrue( "GraphDatabaseService factory cannot read the configuration properties", db.isConfigurationReadable() );
}
public static class MockGraphServiceFactory implements GraphDatabaseServiceFactory {