question: 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 ( ) ) ; } }
target:  Assert delivery state by delivery group.