MessageCountRestartStrategy implements RestartStrategy { @Override public boolean requiresRestart() { boolean result = messagesProcessedCount >= this.getMaxMessagesCount(); if(result) messagesProcessedCount = 0; return result; } MessageCountRestartStrategy(); @Override void messageProcessed(AdaptrisMessage msg); @Override boolean requiresRestart(); int getMaxMessagesCount(); void setMaxMessagesCount(int maxMessagesCount);  }
@Test public void testNoMessage() throws Exception { assertFalse(restartStrategy.requiresRestart()); }