@Test
public void testHeartbeat_notConnected() throws Exception {

	this.internalClient.closeConnection();
	Assert.assertFalse( this.agent.getMessagingClient().isConnected());
	HeartbeatTask task = new HeartbeatTask( this.agent );
	Assert.assertEquals( 0, this.internalClient.messagesForTheDm.size());
	task.run();
	Assert.assertEquals( 0, this.internalClient.messagesForTheDm.size());
}