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
Merge pull request #976 from akolodziejski/TRUNK-3064

TRUNK-3064: Create unit test for duplicate messages