@Test( expected = IOException.class )
public void testSendMessageDirectly_messagingError() throws Exception {

	TestApplication app = new TestApplication();
	ManagedApplication ma = new ManagedApplication( app );
	Message msg = new MsgCmdRemoveInstance( "/" );
	Mockito.doThrow( new IOException( "for test" )).when( this.msgClient ).sendMessageToAgent(
			Mockito.any( Application.class ),
			Mockito.any( Instance.class ),
			Mockito.any( Message.class ));
	Mockito.verifyZeroInteractions( this.msgClient );
	this.mngr.sendMessageDirectly( ma, app.getMySqlVm(), msg );
}