public void shouldCommitWhenReachingBatchSizeWithoutCommits() {
SqlSession mybatisSession = mock(SqlSession.class);
WorkQueue queue = mock(WorkQueue.class);
BatchSession session = new BatchSession(queue, mybatisSession, 10);
ClusterAction action = new ClusterAction() {
@Override
public Object call() throws Exception {
return null;
}
};