static SettingsDecrypter newSettingsDecrypter(Path settingsSecurityFile) {
    Preconditions.checkArgument(Files.isRegularFile(settingsSecurityFile));
    try {

      DefaultPlexusCipher injectCypher = new DefaultPlexusCipher();
      DefaultSecDispatcher injectedDispatcher =
          new DefaultSecDispatcher(
              injectCypher,
              new HashMap<String, PasswordDecryptor>(),
              settingsSecurityFile.toAbsolutePath().toString());
      setField(DefaultSecDispatcher.class, injectedDispatcher, "_cipher", injectCypher);

      return new DefaultSettingsDecrypter(injectedDispatcher);
    } catch (Exception ex) {
      throw new IllegalStateException("Tests need to be rewritten: " + ex.getMessage(), ex);
    }
  }
Create a new {@link SettingsDecrypter} for testing purposes.

@param settingsSecurityFile absolute path to security-settings.xml
@return {@link SettingsDecrypter} built from settingsSecurityFile
jib-maven-plugin/src/test/java/com/google/cloud/tools/jib/maven/SettingsFixture.java