### Question:
PropertyPrefixFilter implements RdfImportFilter { @Override public boolean accept(Node s, Node p, Node o) { if(p.isURI()){ if(includeAll && propertyPrefixMap.isEmpty()){ return true; } String property = p.getURI(); Boolean state = propertyMap.get(property); if(state != null){ return state; } for(Entry<String,Boolean> entry : propertyPrefixMap.entrySet()){ if(property.startsWith(entry.getKey())){ propertyMap.put(property, entry.getValue()); return entry.getValue(); } } propertyMap.put(property, includeAll); } else { return false; } return false; } PropertyPrefixFilter(); protected  PropertyPrefixFilter(NamespacePrefixProvider nsPrefixService, 
            List<String> lines); @Override void setConfiguration(Map<String,Object> config); @Override boolean needsInitialisation(); @Override void initialise(); @Override void close(); @Override boolean accept(Node s, Node p, Node o); static final String PARAM_PROPERTY_FILTERS; }### Answer:
@Test public void testMappings(){ Node subject = Node.createURI("urn:subject"); Node value = Node.createURI("urn:value"); Node rdfType = Node.createURI(NamespaceEnum.rdf+"type"); Assert.assertTrue(importFilter.accept(subject,rdfType,value)); Node rdfsLabel = Node.createURI(NamespaceEnum.rdfs+"label"); Assert.assertTrue(importFilter.accept(subject,rdfsLabel,value)); Node guid = Node.createURI(FB+"type.object.guid"); Assert.assertFalse(importFilter.accept(subject,guid,value)); Node permission = Node.createURI(FB+"type.object.permission"); Assert.assertFalse(importFilter.accept(subject,permission,value)); Node name = Node.createURI(FB+"type.object.name"); Assert.assertTrue(importFilter.accept(subject,name,value)); Node description = Node.createURI(FB+"type.object.description"); Assert.assertTrue(importFilter.accept(subject,description,value)); Node dummy = Node.createURI(FB+"type.dummy"); Assert.assertFalse(importFilter.accept(subject,dummy,value)); Node typePlain = Node.createURI(FB+"type"); Assert.assertFalse(importFilter.accept(subject,typePlain,value)); Node other = Node.createURI(NamespaceEnum.cc+"license"); Assert.assertFalse(importFilter.accept(subject,other,value)); }