@Test
public void testEncode() throws Exception {

  Response response = restService.encode(generateVideoTrack(), profileId);
  Assert.assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
  Assert.assertEquals(new JaxbJob(job), response.getEntity());
}