@Test
public void setValue_encryptsValue() {

  valueCredentialData = new ValueCredentialVersionData("foo");
  subject = new ValueCredentialVersion(valueCredentialData);
  subject.setEncryptor(encryptor);
  subject.setValue("my-value");
  assertThat(valueCredentialData.getEncryptedValueData().getEncryptedValue(), notNullValue());
  assertThat(valueCredentialData.getEncryptedValueData().getNonce(), notNullValue());
}