public class AnnotationOntologyCASConsumerTest {
@Test
public void simpleRunningTest() {
try {
AnnotatorTester annotatorTester = new AnnotatorTester("src/test/resources/TestAnnotationOntologyCASConsumerDescriptor.xml");
/* create a mock CAS */
CAS cas = createCAS();
cas.setDocumentText("Clerezza is an Apache project");
cas.setDocumentLanguage("en");
AnnotationFS annotation = cas.createAnnotation(cas.getAnnotationType(), 0, 9);
cas.addFsToIndexes(annotation);
/* execute ClerezzaCASConsumer on the created CAS */
annotatorTester.performTest(cas);
MGraph createdGraph = TcManager.getInstance().getMGraph(new UriRef("mytest-clerezza-ao-graph"));
assertNotNull(createdGraph);
} catch (Exception e) {
e.printStackTrace();