@Test
public void shouldReturnPreviousValueOnSetValue() {

    //given
    dynamoJobMetaRepository.setValue("myJobType", "someKey", "someOldValue");
    //when
    String previousValue = dynamoJobMetaRepository.setValue("myJobType", "someKey", "someNewValue");
    //given
    assertThat(previousValue, is("someOldValue"));
}