@Test(expected = WorkflowOperationException.class)
public void testNoChannelIdThrowsException() throws WorkflowOperationException {

  MediaPackage mediapackage = EasyMock.createNiceMock(MediaPackage.class);
  WorkflowOperationInstance workflowOperationInstance = EasyMock.createNiceMock(WorkflowOperationInstance.class);
  WorkflowInstance workflowInstance = EasyMock.createNiceMock(WorkflowInstance.class);
  EasyMock.expect(workflowInstance.getMediaPackage()).andStubReturn(mediapackage);
  EasyMock.expect(workflowInstance.getCurrentOperation()).andStubReturn(workflowOperationInstance);
  JobContext jobContext = EasyMock.createNiceMock(JobContext.class);
  EasyMock.replay(jobContext, mediapackage, workflowInstance, workflowOperationInstance);
  ConfigurablePublishWorkflowOperationHandler configurePublish = new ConfigurablePublishWorkflowOperationHandler();
  configurePublish.start(workflowInstance, jobContext);
}