@Test
public void testConcat() throws Exception {

  Dimension dimension = new Dimension(640, 480);
  Track videoTrack = (Track) MediaPackageElementParser.getFromXml(generateVideoTrack());
  String sourceTracks = MediaPackageElementParser.getArrayAsXml(Collections.list(videoTrack, videoTrack));
  Response response = restService.concat(sourceTracks, profileId, Serializer.json(dimension).toJson(), "25", "false");
  Assert.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
  Assert.assertNotNull("Concat rest endpoint should send a job in response", response.getEntity());
}