@Test
public void testRemoveInstance_IOException() {

	this.msgClient.connected.set( false );
	// Check the Tomcat instance is here.
	final String tomcatPath = InstanceHelpers.computeInstancePath( this.app.getTomcat());
	Assert.assertNotNull( InstanceHelpers.findInstanceByPath( this.app, tomcatPath ));
	// Delete the Tomcat instance.
	Response resp = this.resource.removeInstance( this.app.getName(), tomcatPath );
	Assert.assertEquals( Status.NOT_ACCEPTABLE.getStatusCode(), resp.getStatus());
	// Check it is NOT gone.
	Assert.assertNotNull( InstanceHelpers.findInstanceByPath( this.app, tomcatPath ));
}