@Test
public void testSendMessageDirectly_normal() throws Exception {

	TestApplication app = new TestApplication();
	ManagedApplication ma = new ManagedApplication( app );
	Message msg = new MsgCmdRemoveInstance( "/" );
	for( InstanceStatus status : InstanceStatus.values()) {
		Mockito.reset( this.msgClient );
		app.getMySqlVm().setStatus( status );
		Mockito.verifyZeroInteractions( this.msgClient );
		this.mngr.sendMessageDirectly( ma, app.getMySqlVm(), msg );
		Mockito.verify( this.msgClient, Mockito.times( 1 )).sendMessageToAgent(
				Mockito.eq( app ),
				Mockito.eq( app.getMySqlVm()),
				Mockito.eq( msg ));
	}
}