@Test
public void testStartWebVtt() throws Exception {

  EasyMock.expect(captionService.convert(EasyMock.anyObject(Attachment.class), EasyMock.anyObject(String.class),
          EasyMock.anyObject(String.class), EasyMock.anyObject(String.class))).andReturn(job2);
  EasyMock.replay(captionService);
  operation.setConfiguration(GoogleSpeechAttachTranscriptionOperationHandler.TRANSCRIPTION_JOB_ID, "transcriptionJob");
  operation.setConfiguration(GoogleSpeechAttachTranscriptionOperationHandler.TARGET_FLAVOR, "captions/timedtext");
  operation.setConfiguration(GoogleSpeechAttachTranscriptionOperationHandler.TARGET_TAG, "tag1,tag2");
  operation.setConfiguration(GoogleSpeechAttachTranscriptionOperationHandler.TARGET_CAPTION_FORMAT, "webvtt");
  WorkflowOperationResult result = operationHandler.start(workflowInstance, null);
  Assert.assertEquals(Action.CONTINUE, result.getAction());
  MediaPackage updatedMp = result.getMediaPackage();
  Attachment[] attachments = updatedMp.getAttachments(MediaPackageElementFlavor.parseFlavor("captions/timedtext"));
  Assert.assertNotNull(attachments);
  Assert.assertEquals(1, attachments.length);
  Assert.assertNotNull(attachments[0].getTags());
  Assert.assertEquals(2, attachments[0].getTags().length);
  Assert.assertEquals("tag1", attachments[0].getTags()[0]);
  Assert.assertEquals("tag2", attachments[0].getTags()[1]);
}