### Question:
PathRepresentation extends ObjectRepresentation { @Mapping( "nodes" ) public ListRepresentation nodes() { return new ListRepresentation( RepresentationType.NODE, new IterableWrapper<Representation, Node>( path.nodes() ) { @Override protected Representation underlyingObjectToObject( Node node ) { return ValueRepresentation.uri( NodeRepresentation.path( node ) ); } } ); } 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 shouldHaveNodeList() { assertNotNull( pathrep().nodes() ); }