@Test
public void createOrder() {

    int databaseSizeBeforeCreate = orderRepository.findAll().size();
    given()
            .contentType(JSON)
            .body(orderMapper.toDto(this.order))
            .when().post("/api/orders")
            .then()
            .statusCode(201);
    // Validate the Order in the database
    List<Order> orderList = orderRepository.findAll();
    Assertions.assertEquals(orderList.size(), databaseSizeBeforeCreate + 1);
    Order order = orderList.get(orderList.size() - 1);
    Assertions.assertEquals(order.getTotalPrice().floatValue(), DEFAULT_TOTAL_PRICE.floatValue());
}