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

  List<WorkflowInstance> workflowlist = wmc.getWorkflowInstances();
  assertThat(workflowlist, is(not(nullValue())));
  assertThat(workflowlist.size(), is(not(0)));
  WorkflowInstance instance = wmc.getWorkflowInstanceById(workflowlist.get(0).getId());
  assertThat(instance, is(not(nullValue())));
}