@Test
void createKeystore_checkKeystoreFile() {

    when(fileUtils.getOutputStream(any(File.class))).thenCallRealMethod();
    KeystoreCreator.createKeyStoreIfNecessary(temporaryFolder.getRoot().getPath(), getClass().getClassLoader().getResource("privateKeys").getPath(), singletonList(createPrivateKey()), fileUtils, systemProperties.getPath());
    // intention here is not to test the keystore contents, only if is created
    assertTrue(new File(temporaryFolder.getRoot(), KEYSTORE_FILE_NAME).exists());
}