@Test
public void shouldPassAndFailOrders() throws Exception {

  //Given
  orderValService = new OrderDetailsService();
  orders = asList(
      new Order(id(0L), 0L, CREATED, UNDERPANTS, 3, 5.00d), //should pass
      new Order(id(1L), 0L, CREATED, JUMPERS, -1, 75.00d) //should fail
  );
  sendOrders(orders);
  //When
  orderValService.start(CLUSTER.bootstrapServers());
  //Then the second order for Jumpers should have been 'rejected' as it's out of stock
  expected = asList(
      new OrderValidation(id(0L), OrderValidationType.ORDER_DETAILS_CHECK,
          OrderValidationResult.PASS),
      new OrderValidation(id(1L), OrderValidationType.ORDER_DETAILS_CHECK,
          OrderValidationResult.FAIL)
  );
  assertThat(MicroserviceTestUtils.read(Topics.ORDER_VALIDATIONS, 2, CLUSTER.bootstrapServers()))
      .isEqualTo(expected);
}