@Test
void retrieveEncryptedPrivateKeyFromFile() throws Exception
{

    FileUtils.writeStringToFile(FILE, ENCRYPTED_FILE_CONTENT);
    CertifiedKeyPair keyPair = store.retrieve(SINGLE_STORE_REF, PASSWORD);
    assertThat(keyPair, notNullValue());
    assertThat(keyPair.getPrivateKey(), equalTo(privateKey));
    assertThat(keyPair.getCertificate(), equalTo((CertifiedPublicKey) certificate));
}