@Test
public void createOrderWithExistingId() {

    int databaseSizeBeforeCreate = orderRepository.findAll().size();
    order.setId(10L);
    given()
            .contentType(JSON)
            .body(order)
            .when().post("/api/orders")
            .then()
            .statusCode(400);
    // Validate the Order in the database
    List<Order> orderList = orderRepository.findAll();
    Assertions.assertEquals(orderList.size(), databaseSizeBeforeCreate);
}