@Test
public void testPlayerUrl() throws WorkflowOperationException, URISyntaxException {

  URI engageURI = new URI("http://engage.org");
  String mpId = "mp-id";
  MediaPackage mp = EasyMock.createNiceMock(MediaPackage.class);
  Id id = new IdImpl(mpId);
  EasyMock.expect(mp.getIdentifier()).andStubReturn(id);
  MediaPackageElement element = EasyMock.createNiceMock(MediaPackageElement.class);
  EasyMock.replay(element, mp);
  // Test configured organization player path
  PublishEngageWorkflowOperationHandler publishEngagePublish = new PublishEngageWorkflowOperationHandler();
  URI result = publishEngagePublish.createEngageUri(engageURI, mp);
  assertEquals(engageURI.toString() + "/play/" + mpId, result.toString());
}