private static final URI uri = RDFUtils.uri(exampleDoc);
@Test
public void testDirectInstantiation() throws Exception {
CountingTripleHandler out = new CountingTripleHandler();
ExampleExtractor extractor = new ExampleExtractor();
ExtractionContext extractionContext = new ExtractionContext("extractor-name", uri);
ExtractionResultImpl writer = new ExtractionResultImpl(extractionContext, extractor, out);
extractor.run(ExtractionParameters.newDefault(), extractionContext, uri, writer);
writer.close();
Assert.assertEquals(1, out.getCount());
}