	@Test
	public void updateActionOrderStateTest(){

		DelegateExecution delegateExecution = mock(DelegateExecution.class);
		CmsOpsProcedure cmsOpsProcedure = mock(CmsOpsProcedure.class);
		when(delegateExecution.getVariable("proc")).thenReturn(cmsOpsProcedure);

		CmsActionOrderSimple cmsActionOrderSimple= new CmsActionOrderSimple();
		cmsActionOrderSimple.setActionId(3);
		cmsActionOrderSimple.setProcedureId(6);
		cmsActionOrderSimple.setIsCritical(true);
		
		cc.setRestTemplate(mockHttpDoNothing);	
		cc.updateActionOrderState(delegateExecution, cmsActionOrderSimple, "failed") ; //also to do complete
		assertEquals(cmsActionOrderSimple.getActionState().getName() ,"failed","desired change to failed did not happen");
	}