@Test
public void testAddInstance_IOException() throws Exception {

	this.msgClient.connected.set( false );
	Assert.assertEquals( 2, this.app.getRootInstances().size());
	Instance newInstance = new Instance( "vm-mail" ).component( this.app.getMySqlVm().getComponent());
	Response resp = this.resource.addInstance( this.app.getName(), null, newInstance );
	Assert.assertEquals( Status.FORBIDDEN.getStatusCode(), resp.getStatus());
	Assert.assertEquals( 2, this.app.getRootInstances().size());
}