private void assertEqualsMD(MessageDelivery expected, MessageDelivery actual) {
   assertEquals(expected.getId(), actual.getId());
   assertEquals(expected.getDelivererSystemId(), actual.getDelivererSystemId());
   assertEquals(expected.getDelivererTypeName(), actual.getDelivererTypeName());
   assertEquals(expected.getDeliveryStatus(), actual.getDeliveryStatus());
   assertEquals(expected.getMessage().getId(), actual.getMessage().getId());
 }
 @Test(expected = DataIntegrityViolationException.class)
 @Override
 public void testDuplicateCreate() {
   // violates messageid-deliverer constraint
   final MessageDelivery md = new MessageDelivery();
   md.setId(KCBTestData.FAKE_ID);
   md.setDelivererSystemId(MESSAGE_DELIV.getDelivererSystemId());
   md.setDelivererTypeName(MESSAGE_DELIV.getDelivererTypeName());
   md.setDeliveryStatus(MESSAGE_DELIV.getDeliveryStatus());
   md.setLockVerNbr(MESSAGE_DELIV.getLockVerNbr());
   md.setMessage(MESSAGE);
   messageDeliveryService.saveMessageDelivery(md);
 }