### Question:
AsyncSnapshotPersistence { public void delete(final String transactionId) { synchronized (COMMITTED_TRANSACTION_ID_BUFFER) { COMMITTED_TRANSACTION_ID_BUFFER.get(0).add(transactionId); } } AsyncSnapshotPersistence(final DataSource dataSource); void delete(final String transactionId);  }### Answer:
@Test @SneakyThrows public void assertDelete() { AsyncSnapshotPersistence asyncSnapshotPersistence = new AsyncSnapshotPersistence(dataSource); asyncSnapshotPersistence.delete("1"); Thread.sleep(1000); verify(statement).executeBatch(); verify(connection).commit(); }