@Test
public void listWorkflowDefinitionsDoesNotFindNonExistentDefinition() {

  List<ListWorkflowDefinitionResponse> ret = resource.listWorkflowDefinitions(asList("nonexistent")).readEntity(definitionListType);
  assertThat(ret.size(), is(0));
  verify(workflowDefinitionDao).queryStoredWorkflowDefinitions(stringList.capture());
  assertThat(stringList.getValue(), containsElements(asList("nonexistent")));
}