@Test
 public void testExecute_reserveBooks_Success() throws Exception {
   ReservationRequestMessage reservationRequestMessage =
       Bookshop2Fixture.create_ReservationRequestMessage();
   setupContext("dummyCorrelationId", "dummyTransactionId");
   setupMessage(reservationRequestMessage);
   runTestExecute_reserveBooks(reservationRequestMessage);
 }
 @Test
 public void testExecute_purchaseBooks_Success() throws Exception {
   PurchaseRequestMessage purchaseRequestMessage =
       Bookshop2Fixture.create_PurchaseRequestMessage();
   setupContext("dummyCorrelationId", "dummyTransactionId");
   setupMessage(purchaseRequestMessage);
   runTestExecute_purchaseBooks(purchaseRequestMessage);
 }
 @Test
 public void testExecute_reserveBooks_EmptyRequest() throws Exception {
   setupForExpectedException(ReservationAbortedException.class, "ReservationRequestMessage");
   ReservationRequestMessage reservationRequestMessage =
       Bookshop2Fixture.createEmpty_ReservationRequestMessage();
   setupContext("dummyCorrelationId", "dummyTransactionId");
   setupMessage(reservationRequestMessage);
   isExpectedValidationError = true;
   runTestExecute_reserveBooks(reservationRequestMessage);
 }
 @Test
 public void testExecute_purchaseBooks_EmptyRequest() throws Exception {
   setupForExpectedAssertionFailure("PurchaseRequestMessage");
   PurchaseRequestMessage purchaseRequestMessage =
       Bookshop2Fixture.createEmpty_PurchaseRequestMessage();
   setupContext("dummyCorrelationId", "dummyTransactionId");
   setupMessage(purchaseRequestMessage);
   isExpectedValidationError = true;
   runTestExecute_purchaseBooks(purchaseRequestMessage);
 }
 @Test
 public void testExecute_reserveBooks_NullTransactionId() throws Exception {
   setupForExpectedException(ReservationAbortedException.class, "TransactionId null");
   ReservationRequestMessage reservationRequestMessage =
       Bookshop2Fixture.create_ReservationRequestMessage();
   setupContext("dummyCorrelationId", null);
   setupMessage(reservationRequestMessage);
   setGlobalTransactionActive(true);
   isExpectedValidationError = true;
   runTestExecute_reserveBooks(reservationRequestMessage);
 }
 @Test
 public void testExecute_purchaseBooks_NullTransactionId() throws Exception {
   setupForExpectedAssertionFailure("TransactionId null");
   PurchaseRequestMessage purchaseRequestMessage =
       Bookshop2Fixture.create_PurchaseRequestMessage();
   setupContext("dummyCorrelationId", null);
   setupMessage(purchaseRequestMessage);
   setGlobalTransactionActive(true);
   isExpectedValidationError = true;
   runTestExecute_purchaseBooks(purchaseRequestMessage);
 }