public void should_end_batch_with_logged_batch() throws Exception {
//Given
EventHolder eventHolder = mock(EventHolder.class);
RegularStatement statement1 = QueryBuilder.select().from("table1");
RegularStatement statement2 = QueryBuilder.select().from("table2");
AbstractStatementWrapper wrapper1 = new RegularStatementWrapper(CompleteBean.class, statement1, null, com.datastax.driver.core.ConsistencyLevel.ONE, NO_LISTENER, NO_SERIAL_CONSISTENCY);
AbstractStatementWrapper wrapper2 = new RegularStatementWrapper(CompleteBean.class, statement2, null, com.datastax.driver.core.ConsistencyLevel.ONE, NO_LISTENER, NO_SERIAL_CONSISTENCY);
AbstractStatementWrapper wrapper3 = new RegularStatementWrapper(CompleteBean.class, statement2, null, com.datastax.driver.core.ConsistencyLevel.ONE, NO_LISTENER, NO_SERIAL_CONSISTENCY);
context.eventHolders = asList(eventHolder);
context.statementWrappers = asList(wrapper1, wrapper2);
context.counterStatementWrappers = asList(wrapper3);
context.consistencyLevel = ConsistencyLevel.LOCAL_QUORUM;
context.serialConsistencyLevel = Optional.fromNullable(com.datastax.driver.core.ConsistencyLevel.LOCAL_SERIAL);