@Test
public void shouldFindByType() {

    // given
    final JobInfo foo = jobInfo("http://localhost/foo", "T_FOO");
    repo.createOrUpdate(foo);
    repo.createOrUpdate(jobInfo("http://localhost/bar", "T_BAR"));
    // when
    final List<JobInfo> jobInfos = repo.findByType("T_FOO");
    // then
    assertThat(jobInfos, contains(foo));
}