assertThat(found.getName()).isEqualTo(name);
}
private void assertThatBatchContextHasBeenReset(Batch batchEm) {
BatchingFlushContext flushContext = Whitebox.getInternalState(batchEm, BatchingFlushContext.class);
ConsistencyLevel consistencyLevel = Whitebox.getInternalState(flushContext, "consistencyLevel");
List<AbstractStatementWrapper> statementWrappers = Whitebox.getInternalState(flushContext, "statementWrappers");
assertThat(consistencyLevel).isEqualTo(ConsistencyLevel.ONE);
assertThat(statementWrappers).isEmpty();
}