@Test
public void mapUuidsToKeys_shouldContainAReferenceToActiveKey() throws Exception {

  when(encryptionKeysConfiguration.isKeyCreationEnabled()).thenReturn(true);
  when(encryptionKeysConfiguration.getProviders()).thenReturn(asList(activeProvider));
  subject = new EncryptionKeyCanaryMapper(encryptionKeyCanaryDataService,
    encryptionKeysConfiguration, timedRetry, providerFactory);
  subject.mapUuidsToKeys(keySet);
  assertThat(keySet.getKeys(), hasItem(keySet.getActive()));
}