}
@Then("^the (" + FREE_TEXT + ") order book side has rested the orders in the following order:$")
public void ordersListedOnOrderBookSide(String orderBookSide, List<IdList> specifiedOrderIds) throws Exception {
OrderBookSide side = orderBookSideFrom(orderBookSide);
OrderList ordersInOrderBookSide = publishedOrderBookSideFor(side);
assertThat(specifiedOrderIds.size(), is(ordersInOrderBookSide.size()));
for (int i = 0; i < specifiedOrderIds.size(); i++) {
OrderId expectedOrderId = OrderId.create(specifiedOrderIds.get(i).getId());
assertThat(ordersInOrderBookSide.get(i).hasId(expectedOrderId), is(true));
}
}