// Create a CAS from the AE so it has the required type priorities
JCas jcas = tm.newJCas();
// Fill the CAS with some tokens
JCasBuilder builder = new JCasBuilder(jcas);
builder.add("This", TruePositive.class);
builder.add(" ");
builder.add("is", TruePositive.class);
builder.add(" ");
builder.add("a", TruePositive.class);
builder.add(" ");
builder.add("test", TruePositive.class);
builder.add(".", TruePositive.class);
builder.close();
// Apply the script
tm.process(jcas);
AnalysisEngine dumper = createEngine(CasDumpWriter.class, CasDumpWriter.PARAM_OUTPUT_FILE,