for (int i = batch; i < messages.length; i++)
{
_mgr.deliver(_storeContext, DEFAULT_QUEUE_NAME, messages[i], false);
}
_mgr.processAsync(new OnCurrentThreadExecutor());
assertEquals(0, s1.getMessages().size());
s1.setSuspended(false);
_mgr.processAsync(new OnCurrentThreadExecutor());
assertEquals(messages.length - batch, s1.getMessages().size());
for (int i = batch; i < messages.length; i++)
{
assertTrue(messages[i] == s1.getMessages().get(i - batch));