@Test
public void testSimple() throws Exception {
//<start id="crt2.simple"/>
//... setup some documents elsewhere
final Controller controller =
ControllerFactory.createSimple();//<co id="crt2.controller.creation"/>
documents = new ArrayList<Document>();
for (int i = 0; i < titles.length; i++) {
Document doc = new Document(titles[i], snippets[i],
"file://foo_" + i + ".txt");
documents.add(doc);
}
final ProcessingResult result = controller.process(documents,
"red fox",
LingoClusteringAlgorithm.class);//<co id="crt2.process"/>
displayResults(result);//<co id="crt2.print"/>
/*