@Override
        public Optional<String> reveal(String secret) {
            if (secret.equals("MY_PRIVATE_KEY")) {
                return Optional.of(PRIVATE_SSH_KEY);
            }
            if (secret.equals("SSH_AGENT_PRIVATE_KEY_BASE64")) {
                return Optional.of(PRIVATE_SSH_KEY_BASE64);
            }

            return Optional.empty();
        }
Integration tests for the SSH Credentials Plugin.
integrations/src/test/java/io/jenkins/plugins/casc/SSHCredentialsTest.java