@Test
public void storeSecrets_secretTypeNull() {

    //GIVEN
    final TypedSecret typedSecret = new TypedSecret();
    typedSecret.setSecret(HexUtils.toHexString("$3cr3t".getBytes()));
    final DbEncryptionKeyReference keyReference = new DbEncryptionKeyReference();
    keyReference.setEncryptionProviderType(EncryptionProviderType.JRE);
    keyReference.setReference("keyReferenceString");
    //THEN
    assertThatIllegalArgumentException().isThrownBy(
            () -> this.service.storeSecrets("SOME_DEVICE", Arrays.asList(typedSecret)));
}