@Test
public void testUpdateWorkflowInstanceStatus() throws XmlRpcException, IOException, RepositoryException {

  List<WorkflowInstance> workflowlist = null;
  WorkflowInstance instance = null;
  boolean upd = false;
  
  try{
    workflowlist = wmc.getWorkflowInstances();
  }
  catch(Exception e){
    e.printStackTrace();
  }
  assumeNotNull(workflowlist);
  assertThat(workflowlist, is(not(nullValue())));
  assertThat(workflowlist.size(), is(not(0)));
  try{
    instance = wmc.getWorkflowInstanceById(workflowlist.get(0).getId());
  }
  catch(Exception e){
    e.printStackTrace();
  }
  assumeNotNull(instance);
  assertThat(instance, is(not(nullValue())));
  try{
    upd = wmc.updateWorkflowInstanceStatus(instance.getId(), "RUNNING");
  }
  catch(Exception e){
    e.printStackTrace();
  }
  assumeTrue(upd);
  assertThat(upd, equalTo(true));
}