@Test
public void matchesCanary_shouldReturnTrue_IfTheCanaryDecryptsToTheDeprecatedCanaryValue() throws Exception {

  when(encryptionProvider.decrypt(any(), any(), any())).thenReturn(EncryptionKeyCanaryMapper.DEPRECATED_CANARY_VALUE);
  subject = new ExternalKeyProxy(encryptionKeyMetadata, encryptionProvider);
  assertTrue(subject.matchesCanary(encryptionKeyCanary));
}