@Test
public void shouldFindStatusOfAJob() throws Exception {

    //Given
    final JobInfo foo = jobInfo("http://localhost/foo", "T_FOO");
    repo.createOrUpdate(foo);
    //When
    final JobStatus status = repo.findStatus("http://localhost/foo");
    //Then
    assertThat(status, is(OK));
}