@Autowired
private BookService books;
@Test
public void test() throws InterruptedException {
final Book book1 = new Book(1, "A");
books.createBook(book1);
final Book book2 = new Book(2, "B");
books.createBook(book2);
final Book book3 = new Book(3, "C");
books.createBookWithoutTx(book3);
final Book bookAfterCommit = new Book(55, "AFTER COMMIT");
books.triggerCreatePostCommit(bookAfterCommit);
final Book book4 = new Book(4, "D");
books.createBook(book4);
assertEquals(book1, books.lookupBookById(1));
assertEquals(book2, books.lookupBookById(2));