@Test
void storePrivateKeyToDirectoryWithoutSubjectID() throws Exception
{

    when(certificate.getExtensions()).thenReturn(null);
    when(certificate.getSubjectKeyIdentifier()).thenReturn(null);
    store.store(MULTI_STORE_REF, keyPair);
    assertThat(FileUtils.readFileToString(new File(DIRECTORY, SERIAL + ", " + ISSUER + ".key")),
        equalTo(KEY_FILE_CONTENT));
    assertThat(FileUtils.readFileToString(new File(DIRECTORY, SERIAL + ", " + ISSUER + ".cert")),
        equalTo(CERTIFICATE_FILE_CONTENT));
}