EncryptionKeyProvider { public List<EncryptionKeyMetadata> getKeys() { return keys; }  EncryptionConfiguration getConfiguration(); void setConfiguration(final EncryptionConfiguration configuration); String getProviderName(); void setProviderName(final String providerName); ProviderType getProviderType(); void setProviderType(final ProviderType providerType); List<EncryptionKeyMetadata> getKeys(); void setKeys(final List<EncryptionKeyMetadata> keys); @Override String toString();  }
@Test public void initializesWithAnEmptyButAppendableKeyList() { final EncryptionKeyProvider provider = new EncryptionKeyProvider(); assertThat(provider.getKeys(), is(empty())); provider.getKeys().add(new EncryptionKeyMetadata()); assertThat(provider.getKeys(), hasSize(1)); }