AnnotatedDocumentTransformer adt =
new AnnotatedDocumentTransformer(annSpecs,procSpecs,true,true);
String theString1 = adt.getStringForDocument(testDoc01In,"");
assertEquals("time_modifier is a simple test document for testing the PN class . stop contains token annotations in the default annotation set from person_first and some additional manual annotations .", theString1);
OffsetMapping bom = adt.getBackwardOffsetMap();
OffsetMapping fom = adt.getForwardOffsetMap();
// test some backward mappings
assertEquals("Backward mapping of 'is' start - start offset", 5, bom.getFrom(14));
assertEquals("Backward mapping of 'is' start - end offset", 7, bom.getTo(14));
assertEquals("Backward mapping of 'is' end - start offset", 5, bom.getFrom(15));
assertEquals("Backward mapping of 'is' end - end offset", 7, bom.getTo(15));