InOrder inOrder = inOrder(mockedhistoricActivityInstanceQuery);
inOrder.verify(mockedhistoricActivityInstanceQuery).unfinished();
inOrder.verify(mockedhistoricActivityInstanceQuery).list();
String content = response.asString();
List<String> instances = from(content).getList("");
Assert.assertEquals("There should be one activity instance returned.", 1, instances.size());
Assert.assertNotNull("The returned activity instance should not be null.", instances.get(0));
String returnedProcessDefinitionId = from(content).getString("[0].processDefinitionId");