### Question:
PathRepresentation extends ObjectRepresentation { @Mapping( "length" ) public ValueRepresentation length() { return ValueRepresentation.number( path.length() ); } 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 shouldHaveLength() { assertNotNull( pathrep().length() ); }