@Test
public void fillsTheListOfKeysFromApplicationYml() {

  final List<EncryptionKeyMetadata> keys = subject.getProviders().get(0).getKeys();
  assertThat(keys.size(), equalTo(2));
  final EncryptionKeyMetadata firstKey = keys.get(0);
  final EncryptionKeyMetadata secondKey = keys.get(1);
  assertThat(firstKey.getEncryptionPassword(), equalTo("opensesame"));
  assertThat(firstKey.isActive(), equalTo(true));
  assertThat(secondKey.getEncryptionPassword(), equalTo("correcthorsebatterystaple"));
  assertThat(secondKey.isActive(), equalTo(false));
}