assertNotNull( map.get( "extensions_info" ) );
assertNotNull( map.get( "batch" ) );
assertEquals( Version.getKernelRevision(), map.get( "neo4j_version" ) );
// Make sure advertised urls work
JaxRsResponse response = RestRequest.req().get( getDataUri() );
if ( map.get( "reference_node" ) != null )
{
response = RestRequest.req().get(
(String) map.get( "reference_node" ) );
assertEquals( 200, response.getStatus() );
response.close();
}
response = RestRequest.req().get( (String) map.get( "node_index" ) );
assertTrue( response.getStatus() == 200 || response.getStatus() == 204 );
response.close();
response = RestRequest.req().get(
(String) map.get( "relationship_index" ) );
assertTrue( response.getStatus() == 200 || response.getStatus() == 204 );
response.close();
response = RestRequest.req().get( (String) map.get( "extensions_info" ) );
assertEquals( 200, response.getStatus() );
response.close();
response = RestRequest.req().post( (String) map.get( "batch" ), "[]" );
assertEquals( 200, response.getStatus() );
response.close();
}