@Test
public void createKeyProxy_createsKeyIfNoKeyExists() throws Exception {

  setupNoKeyExists();
  final EncryptionKeyMetadata keyMetadata = new EncryptionKeyMetadata();
  keyMetadata.setEncryptionKeyName("fake_key_name");
  subject = new LunaEncryptionService(connection, true, timedRetry);
  assertThat(subject.createKeyProxy(keyMetadata).getKey(), equalTo(aesKey));
  verify(connection).setKeyEntry("fake_key_name", aesKey);
}