AMQMessageHeader messageHeader = mock(AMQMessageHeader.class);
when(messageHeader.getHeader(CONFLATION_KEY)).thenReturn(conflationKeyValue);
when(mockMessage.getMessageHeader()).thenReturn(messageHeader);
AMQMessageReference messageReference = new AMQMessageReference(mockMessage);
when(mockMessage.newReference()).thenReturn(messageReference);
return mockMessage;
}