PropertyNameParser { public List<QName> parsePropertiesWithPrimitiveHref( String pathToFile ) { Path path = Paths.get( pathToFile ); return parsePropertiesWithPrimitiveHref( path ); }  List<QName> parsePropertiesWithPrimitiveHref( String pathToFile ); List<QName> parsePropertiesWithPrimitiveHref( URI pathToFile );  }
@Test public void testParsePropertiesWithPrimitiveHref() throws URISyntaxException { URL resource = PropertyNameParserTest.class.getResource( "/listOfPropertiesWithPrimitiveHref" ); List<QName> qNames = propertyNameParser.parsePropertiesWithPrimitiveHref( resource.toURI() ); assertThat( qNames.size(), is( 3 ) ); assertThat( qNames, hasItem( new QName( "http: assertThat( qNames, hasItem( new QName( "nativeness" ) ) ); assertThat( qNames, hasItem( new QName( "nativenessWithSpace" ) ) ); }