@Test
public void testComplete() throws Exception {

  EasyMock.expect(instance.getConfiguration(SOURCE_FLAVOR)).andReturn(SOURCE_FLAVOR_KEY).anyTimes();
  EasyMock.expect(instance.getConfiguration(SOURCE_SMIL_FLAVOR)).andReturn(SOURCE_SMIL_FLAVOR_KEY).anyTimes();
  EasyMock.expect(instance.getConfiguration(ENCODING_PROFILE)).andReturn(ENCODING_PROFILE_ID).anyTimes();
  EasyMock.replay(instance);
  WorkflowOperationResult result = handler.start(workflow, null);
  Assert.assertEquals(WorkflowOperationResult.Action.CONTINUE, result.getAction());
  MediaPackage mpNew = result.getMediaPackage();
  Track[] tracks = mpNew.getTracks(MediaPackageElementFlavor.parseFlavor(TARGET_FLAVOR_RETURN));
  Assert.assertEquals(1, tracks.length);
}