@SuppressWarnings("rawtypes")
@Test
public final void testSubmitBatchCommand() throws InterruptedException {

    BatcherImpl batcher = new BatcherImpl(2);
    batcher.setBatchRunner(new RetryingTxnBatchRunner());
    batcher.startup();
    try {
        for (int i = 0; i < 100; i++) {
            batcher.submitBatchCommand(new TestBatchCommand("Test#" + i));
        }
        Thread.sleep(5000);
    } finally {
        batcher.shutdown();
    }
}