@Test
public void testEditorOperationInteractiveSkip() throws WorkflowOperationException {

  WorkflowInstanceImpl workflowInstance = getWorkflowInstance(mp, getDefaultConfiguration(false));
  WorkflowOperationResult result = videoEditorWorkflowOperationHandler.start(workflowInstance, null);
  Assert.assertNotNull(
          "VideoEditor workflow operation returns null but should be an instantiated WorkflowOperationResult", result);
  // mediapackage should contain new derived track with flavor given by "target-flavor-subtype" configuration
  WorkflowOperationInstance worflowOperationInstance = workflowInstance.getCurrentOperation();
  String targetFlavorSubtypeProperty = worflowOperationInstance.getConfiguration("target-flavor-subtype");
  String skippedFlavorsProperty = worflowOperationInstance.getConfiguration("skipped-flavors");
  TrackSelector trackSelector = new TrackSelector();
  trackSelector.addFlavor(skippedFlavorsProperty);
  Collection<Track> skippedTracks = trackSelector.select(result.getMediaPackage(), false);
  Assert.assertTrue("Mediapackage does not contain any tracks matching flavor " + skippedFlavorsProperty,
          skippedTracks != null && !skippedTracks.isEmpty());
  for (Track skippedTrack : skippedTracks) {
    MediaPackageElementFlavor derivedTrackFlavor = MediaPackageElementFlavor.flavor(skippedTrack.getFlavor()
            .getType(), targetFlavorSubtypeProperty);
    MediaPackageElement[] derivedElements = result.getMediaPackage().getDerived(skippedTrack, derivedTrackFlavor);
    Assert.assertTrue("Media package should contain track with flavor " + derivedTrackFlavor.toString(),
            derivedElements != null && derivedElements.length > 0);
  }
}