ReplicationIT: Replace ExpectedException with assertThrows The ExpectedException is removed in later branches. Replace it in stable-2.16 to avoid unnecessary rework when merging up. Change-Id: I65b18bf77f9d5816e7d2c9533535d0c307f65a46