@Test
void retrievePrivateKeyFromDirectory() throws Exception
{

    DIRECTORY.mkdirs();
    FileUtils.writeStringToFile(KEY_FILE, KEY_FILE_CONTENT);
    FileUtils.writeStringToFile(CERT_FILE, CERTIFICATE_FILE_CONTENT);
    CertifiedKeyPair keyPair = store.retrieve(MULTI_STORE_REF, certificate);
    assertThat(keyPair, notNullValue());
    assertThat(keyPair.getPrivateKey(), equalTo(privateKey));
    assertThat(keyPair.getCertificate(), equalTo((CertifiedPublicKey) certificate));
}