@Test
public void testCreateTimelinePreviewImages() throws Exception {

  Job expectedJob = new JobImpl(1);
  ServiceRegistry serviceRegistry = EasyMock.createNiceMock(ServiceRegistry.class);
  EasyMock.expect(serviceRegistry.createJob(
          EasyMock.eq(TimelinePreviewsServiceImpl.JOB_TYPE),
          EasyMock.eq(TimelinePreviewsServiceImpl.Operation.TimelinePreview.toString()),
          (List<String>) EasyMock.anyObject(), EasyMock.anyFloat()))
          .andReturn(expectedJob);
  EasyMock.replay(serviceRegistry);
  TimelinePreviewsServiceImpl instance = new TimelinePreviewsServiceImpl();
  instance.setServiceRegistry(serviceRegistry);
  Job job = instance.createTimelinePreviewImages(track, 10);
  assertEquals(expectedJob, job);
}