@Test
 public void pay() throws Exception {
   Orderr orderr = createAndSaveOrderFromShoppingCart();
   orderRepository.save(orderr);
   mockMvc
       .perform(
           put("/shop/orders/registerPayment/" + orderr.getUuid()).contentType(jsonContentType))
       .andExpect(status().isOk())
       .andExpect(jsonPath("$.paymentReceived", is(true)));
 }
 @Test
 public void testAddingAccountToOrder() throws Exception {
   Orderr orderr = createAndSaveOrderFromShoppingCart();
   Account account = createAndSaveAccount();
   mockMvc
       .perform(
           put("/shop/orders/" + orderr.getUuid() + "/account")
               .content(this.json(account))
               .contentType(jsonContentType))
       .andExpect(status().isOk())
       .andExpect(jsonPath("$.account.address", is(account.getAddress())));
 }