public void testLoadMalformedPropertiesLocation() throws Exception {
EmbeddedGraphDatabaseFactory factory = new EmbeddedGraphDatabaseFactory();
Properties properties = new Properties();
properties.put( Neo4jProperties.DATABASE_PATH, dbLocation );
properties.put( Neo4jProperties.CONFIGURATION_RESOURCE_NAME, "aKDJSAGFKJAFLASFlaLfsfaf" );
factory.initialize( properties );
factory.create().shutdown();
}
private URL neo4jPropertiesUrl() {
return Thread.currentThread().getContextClassLoader().getClass().getResource( "/neo4j-embedded-test.properties" );