@Test
public void shouldGetJobMetaAsInt() {

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