@Test
public void testExecute() throws Exception {

	String line = "rename /tomcat-vm as tomcat-vm-copy";
	Assert.assertEquals( 0, this.cmdMngr.validate( this.app, line ).size());
	String cmdName = "my-command";
	this.cmdMngr.createOrUpdateCommand( this.app, cmdName, line );
	Assert.assertNotNull( InstanceHelpers.findInstanceByPath( this.app, "/tomcat-vm" ));
	Assert.assertNull( InstanceHelpers.findInstanceByPath( this.app, "/tomcat-vm-copy" ));
	this.cmdMngr.execute( this.app, cmdName, CommandHistoryItem.ORIGIN_REST_API, "some source" );
	Assert.assertNull( InstanceHelpers.findInstanceByPath( this.app, "/tomcat-vm" ));
	Assert.assertNotNull( InstanceHelpers.findInstanceByPath( this.app, "/tomcat-vm-copy" ));
}