@Test
public void testReplaceVariables() throws Exception {

  replayServices();
  MediaPackageElementFlavor flavor = new MediaPackageElementFlavor("presenter", "delivery");
  String expectedStreamName = MP_ID + "-" + CAPTURE_AGENT_NAME + "-presenter-delivery-stream-3840x1080_suffix";
  String actualStreamName = service.replaceVariables(MP_ID, CAPTURE_AGENT_NAME, STREAM_NAME, flavor, "3840x1080");
  Assert.assertEquals(expectedStreamName, actualStreamName);
}