@Test
public void retrieveSecrets_noSecrets() {

    when(this.secretRepository.findIdOfValidMostRecent(any(), any(), any())).thenReturn(null);
    assertThatIllegalStateException().isThrownBy(
            () -> this.service.retrieveSecrets("SOME_DEVICE", Arrays.asList(SecretType.E_METER_MASTER_KEY)));
}