assertEquals("files Size: " + files.length + " is not: " + 0, 0, files.length);
BayesFileFormatter.collapse("animal", analyzer, input, Charsets.UTF_8, new File(out, "animal"));
files = out.listFiles();
assertEquals("files Size: " + files.length + " is not: " + 1, 1, files.length);
int count = 0;
for (String line : new FileLineIterable(files[0])) {
assertTrue("line does not start with label", line.startsWith("animal"));
count++;
}
assertEquals(count + " does not equal: " + WORDS.length, count, WORDS.length);
}