@Test
public void shouldGetJobMetaAsLong() {

    when(metaRepository.getValue("someJob", "key")).thenReturn("42");
    final long value = testee.getMetaAsLong("key", -1L);
    assertThat(value, is(42L));
}