{
assertTrue( "expected more paths (found: " + foundCount + ")", paths.hasNext() );
Path path = paths.next();
assertPath( path, nodeA, nodeB, nodeC );
Iterator<Relationship> relationships = path.relationships().iterator();
assertTrue( "found shorter path than expected",
relationships.hasNext() );
assertTrue( "path contained unexpected relationship",
expectedFirsts.remove( relationships.next() ) );
assertTrue( "found shorter path than expected",