@Test
public void testDistributeMultipleJob() throws Exception {

  Set<String> mpeIds = new LinkedHashSet<String>();
  mpeIds.add("presenter-delivery");
  boolean checkAvailability = false;
  List<String> args = new LinkedList<String>();
  args.add("channelId");
  args.add(MediaPackageParser.getAsXml(mp));
  args.add(gson.toJson(mpeIds));
  args.add(Boolean.toString(checkAvailability));
  EasyMock.expect(
          serviceRegistry.createJob(
                  AwsS3DistributionServiceImpl.JOB_TYPE,
                  AwsS3DistributionServiceImpl.Operation.Distribute.toString(),
                  args, AwsS3DistributionServiceImpl.DEFAULT_DISTRIBUTE_JOB_LOAD
                  )).andReturn(null).once();
  EasyMock.replay(serviceRegistry);
  service.distribute("channelId", mp, mpeIds, checkAvailability);
  EasyMock.verify(serviceRegistry);
}