TRUNK-3064: Create unit test for duplicate messages