protected void assertDeliveryStates(final Collection<CustomerOrderDelivery> deliveries,final Map<String,String> expectedState){
  for (  CustomerOrderDelivery delivery : deliveries) {
    assertEquals("Delivery " + delivery.getDeliveryGroup() + ", no "+ delivery.getDeliveryNum(),expectedState.get(delivery.getDeliveryGroup()),delivery.getDeliveryStatus());
  }
}

protected void assertDeliveryStates ( final Collection < CustomerOrderDelivery > deliveries , final Map < String , String > expectedState ) { for ( CustomerOrderDelivery delivery : deliveries ) { assertEquals ( "Delivery " + delivery . getDeliveryGroup ( ) + ", no " + delivery . getDeliveryNum ( ) , expectedState . get ( delivery . getDeliveryGroup ( ) ) , delivery . getDeliveryStatus ( ) ) ; } }
assert delivery state by delivery group .
