### Question:
ParentXMLFilter extends AbstractEventXMLFilter { public void setProjectPath( Path projectPath ) { this.projectPath = projectPath; } ParentXMLFilter( Function<Path, Optional<RelativeProject>> relativePathMapper ); void setProjectPath( Path projectPath ); @Override void startElement( String uri, final String localName, String qName, Attributes atts ); @Override void characters( char[] ch, int start, int length ); @Override void endElement( String uri, final String localName, String qName );  }### Answer:
@Test public void testInvalidRelativePath() throws Exception { ParentXMLFilter filter = new ParentXMLFilter( x -> Optional.ofNullable( null ) ); filter.setProjectPath( Paths.get( "pom.xml").toAbsolutePath() ); String input = "<parent>" + "<groupId>GROUPID</groupId>" + "<artifactId>ARTIFACTID</artifactId>" + "<relativePath>RELATIVEPATH</relativePath>" + "</parent>"; String expected = input; String actual = transform( input, filter ); assertEquals( expected, actual ); }