@Test
public void testSendStoredMessages_NoMessageToSend() throws Exception {

	// sendStoredMessages is widely used in other tests.
	// We just complete the cases that are not covered.
	TestApplication app = new TestApplication();
	ManagedApplication ma = new ManagedApplication( app );
	app.getMySqlVm().setStatus( InstanceStatus.DEPLOYED_STARTED );
	Mockito.when( this.msgClient.isConnected()).thenReturn( true );
	Mockito.verifyZeroInteractions( this.msgClient );
	this.mngr.sendStoredMessages( ma, app.getMySqlVm());
	Mockito.verify( this.msgClient, Mockito.times( 1 )).isConnected();
	Mockito.verify( this.msgClient, Mockito.times( 0 )).sendMessageToAgent(
			Mockito.any( Application.class ),
			Mockito.any( Instance.class ),
			Mockito.any( Message.class ));
}