@Test
public void testUndeployAll() throws Exception {

	Assert.assertEquals( 0, this.msgClient.allSentMessages.size());
	Assert.assertEquals( 0, this.ma.removeAwaitingMessages( this.app.getTomcatVm()).size());
	String instancePath = InstanceHelpers.computeInstancePath( this.app.getTomcat());
	this.client.getApplicationDelegate().undeployAll( this.app.getName(), instancePath );
	Assert.assertEquals( 0, this.msgClient.allSentMessages.size());
	List<Message> messages = this.ma.removeAwaitingMessages( this.app.getTomcatVm());
	Assert.assertEquals( 1, messages.size());
	Assert.assertEquals( MsgCmdChangeInstanceState.class, messages.get( 0 ).getClass());
	Assert.assertEquals( instancePath, ((MsgCmdChangeInstanceState) messages.get( 0 )).getInstancePath());
}