GmlDocumentIdContext implements GMLReferenceResolver { public GMLObject getObject( String id ) { return idToObject.get( id ); } GmlDocumentIdContext( GMLVersion version ); void setApplicationSchema( AppSchema schema ); void addObject( GMLObject object ); void addReference( GMLReference<?> ref ); void setReferencePatternMatcher( ReferencePatternMatcher referencePatternMatcher ); GMLObject getObject( String id ); Map<String, GMLObject> getObjects(); List<GMLReference<?>> getReferences(); @Override GMLObject getObject( String uri, String baseURL ); void resolveLocalRefs();  }
@Test(expected = Exception.class) public void getObject_noMatcher_invalidUrl() throws Exception { GmlDocumentIdContext gmlDocumentIdContext = new GmlDocumentIdContext( GMLVersion.GML_32 ); gmlDocumentIdContext.getObject( "uri", null ); }