@Test
public void testCheckMessagingConnectionForTheDm_ioException() {

	Assert.assertEquals( 0, this.msgClient.allSentMessages.size());
	this.msgClient.failMessageSending.set( true );
	Response resp = this.resource.checkMessagingConnectionForTheDm( UUID.randomUUID().toString());
	Assert.assertEquals( Status.INTERNAL_SERVER_ERROR.getStatusCode(), resp.getStatus());
	Assert.assertEquals( 0, this.msgClient.allSentMessages.size());
}