WatchDog watchDog = new WatchDog("Load history");
LocalMessageDispatcherImpl localMessageDispatcher = createLocalMessageDispatcher();
LocalMessage[] messages = localMessageDispatcher.getHistory(myUser, yesterday());
assertEquals(1000, messages.length);
long diff = watchDog.diff();
watchDog.watchAndReset("done");
assertTrue("Too long getting history:" + diff, diff < 1500);
messages = localMessageDispatcher.getHistory(myUser, null);
assertEquals(1000, messages.length);