assertEquals(details.getOrderItems().get(RestDataFixture.YUMMY_ITEM), order.getItems().get(RestDataFixture.YUMMY_ITEM));
}
@Test
public void thatOrderCanConvertFromOrderDetails() {
OrderDetails details = RestDataFixture.standardOrderDetails();
Order order = Order.fromOrderDetails(details);
assertEquals(order.getKey(), details.getKey());
assertEquals(order.getDateTimeOfSubmission(), details.getDateTimeOfSubmission());
assertEquals(order.getItems().size(), details.getOrderItems().size());
assertTrue(order.getItems().containsKey(RestDataFixture.YUMMY_ITEM));
assertEquals(details.getOrderItems().get(RestDataFixture.YUMMY_ITEM), order.getItems().get(RestDataFixture.YUMMY_ITEM));
}