TRUNK-3064: Create unit test for duplicate messages

TRUNK-3064: Create unit test for duplicate messages

TRUNK-3064: Create unit test for duplicate messages

TRUNK-3064: Create unit test for duplicate messages