try {
UIMATypeAwareAnalyzer analyzer = new UIMATypeAwareAnalyzer("/HmmTaggerAggregate.xml",
"org.apache.uima.TokenAnnotation", "posTag");
TokenStream ts = analyzer.tokenStream("text", new StringReader("the big brown fox jumped on the wood"));
CharTermAttribute termAtt = ts.addAttribute(CharTermAttribute.class);
OffsetAttribute offsetAtt = ts.addAttribute(OffsetAttribute.class);
TypeAttribute typeAttr = ts.addAttribute(TypeAttribute.class);
PositionIncrementAttribute posAtt = ts.addAttribute(PositionIncrementAttribute.class);
while (ts.incrementToken()) {
assertNotNull(offsetAtt);
assertNotNull(termAtt);