### Question:
PathRepresentation extends ObjectRepresentation { @Mapping( "end" ) public ValueRepresentation endNode() { return ValueRepresentation.uri( NodeRepresentation.path( path.endNode() ) ); } PathRepresentation( P path ); @Mapping( "start" ) ValueRepresentation startNode(); @Mapping( "end" ) ValueRepresentation endNode(); @Mapping( "length" ) ValueRepresentation length(); @Mapping( "nodes" ) ListRepresentation nodes(); @Mapping( "relationships" ) ListRepresentation relationships(); @Mapping( "directions" ) ListRepresentation directions();  }### Answer:
@Test public void shouldHaveEndNodeLink() { assertUriMatches( NODE_URI_PATTERN, pathrep().endNode() ); }