@Test
public void testInvalidWorkflow() throws Exception {

  WorkflowInstanceImpl instance = new WorkflowInstanceImpl();
  List<WorkflowOperationInstance> ops = new ArrayList<WorkflowOperationInstance>();
  WorkflowOperationInstanceImpl operation = new WorkflowOperationInstanceImpl("test", OperationState.INSTANTIATED);
  ops.add(operation);
  instance.setOperations(ops);
  operation.setConfiguration(ZipWorkflowOperationHandler.ZIP_COLLECTION_PROPERTY, "failed-zips");
  operation.setConfiguration(ZipWorkflowOperationHandler.INCLUDE_FLAVORS_PROPERTY, "*/source,dublincore/*");
  operation.setConfiguration(ZipWorkflowOperationHandler.TARGET_FLAVOR_PROPERTY, "archive/zip");
  operation.setConfiguration(ZipWorkflowOperationHandler.COMPRESS_PROPERTY, "false");
  try {
    operationHandler.start(null, null);
    Assert.fail("A null workflow is passed so an exception should be thrown");
  } catch (WorkflowOperationException e) {
    // expecting exception
  }
}