}
}
private static void assertTokenCount(DataStore<String, TokenDatum> outStore,
String token, int count) throws IOException {
TokenDatum datum = outStore.get(token, null);
Assert.assertNotNull("token:" + token + " cannot be found in datastore", datum);
Assert.assertEquals("count for token:" + token + " is wrong", count, datum.getCount());
}