@Test
public void testGetGeneratedTranscriptionNoJobId() throws Exception {

  database.storeJobControl(MP_ID, TRACK_ID, JOB_ID, TranscriptionJobControl.Status.InProgress.name(), TRACK_DURATION, DATE_EXPECTED, PROVIDER);
  database.storeJobControl(MP_ID, "audioTrack2", "jobId2", TranscriptionJobControl.Status.InProgress.name(),
          TRACK_DURATION, DATE_EXPECTED, PROVIDER);
  database.updateJobControl(JOB_ID, TranscriptionJobControl.Status.TranscriptionComplete.name());
  URI uri = new URI("http://ADMIN_SERVER/collection/" + GoogleSpeechTranscriptionService.TRANSCRIPT_COLLECTION + "/"
          + JOB_ID + ".json");
  EasyMock.expect(workspace.getCollectionURI(GoogleSpeechTranscriptionService.TRANSCRIPT_COLLECTION, JOB_ID + ".json"))
          .andReturn(uri);
  EasyMock.expect(workspace.get(uri)).andReturn(null); // Doesn't matter what is returned
  EasyMock.replay(workspace);
  MediaPackageElement mpe = service.getGeneratedTranscription(MP_ID, null);
  Assert.assertEquals("captions", mpe.getFlavor().getType());
  Assert.assertEquals("google-speech-json", mpe.getFlavor().getSubtype());
  Assert.assertEquals(uri.toString(), mpe.getURI().toString());
}