### Question:
DatabaseRepresentation extends MappingRepresentation implements ExtensibleRepresentation { @Override protected void serialize( MappingSerializer serializer ) { serializer.putRelativeUri( "node", PATH_NODES ); serializer.putRelativeUri( "relationship", PATH_RELATIONSHIPS ); serializer.putRelativeUri( "node_index", PATH_NODE_INDEX ); serializer.putRelativeUri( "relationship_index", PATH_RELATIONSHIP_INDEX ); serializer.putRelativeUri( "extensions_info", PATH_EXTENSIONS ); serializer.putRelativeUri( "relationship_types", PATH_RELATIONSHIP_TYPES ); serializer.putRelativeUri( "batch", PATH_BATCH ); serializer.putRelativeUri( "cypher", PATH_CYPHER ); serializer.putRelativeUri( "indexes", PATH_SCHEMA_INDEX ); serializer.putRelativeUri( "constraints", PATH_SCHEMA_CONSTRAINT ); serializer.putRelativeUri( "transaction", PATH_TRANSACTION ); serializer.putRelativeUri( "node_labels", PATH_LABELS ); serializer.putString( "neo4j_version", Version.getNeo4jVersion() ); } DatabaseRepresentation(); @Override String getIdentity();  }### Answer:
@Test public void shouldIncludeExpectedResourcePaths() { DatabaseRepresentation repr = new DatabaseRepresentation(); HashMap<String,Object> output = new HashMap<>(); repr.serialize( new MappingSerializer( new MapWrappingWriter( output ), URI.create("http: assertThat( output, hasEntry( "relationship_index", "http: assertThat( output, hasEntry( "relationship_index", "http: assertThat( output, hasEntry( "node_index", "http: assertThat( output, hasEntry( "batch", "http: assertThat( output, hasEntry( "constraints", "http: assertThat( output, hasEntry( "node", "http: assertThat( output, hasEntry( "extensions_info", "http: assertThat( output, hasEntry( "node_labels", "http: assertThat( output, hasEntry( "indexes", "http: assertThat( output, hasEntry( "cypher", "http: assertThat( output, hasEntry( "relationship_types", "http: assertThat( output, hasEntry( "relationship", "http: assertThat( output, hasEntry( "transaction", "http: assertThat( output, hasEntry( equalTo("neo4j_version"), notNullValue() ) ); }