cas.getDocumentAnnotation().setStringValue(stringFeat, "MyExample");
cas.getDocumentAnnotation().setFeatureValue(refFeat,
cas.getDocumentAnnotation());
FeaturePath featurePath = new FeaturePathImpl();
featurePath.initialize("/refFeature2");
featurePath.addFeature(stringFeat);
assertEquals("MyExample", featurePath.getValueAsString(cas
.getDocumentAnnotation()));
assertEquals("/refFeature2/stringFeature", featurePath.getFeaturePath());