def METHOD_NAME(self, secret_specifier, expected_obfuscation, expected_value):
    with assertProducesWarning(DeprecatedApiWarning):
        yield self.setup_config(secret_specifier=secret_specifier)
    build = yield self.doForceBuild(wantSteps=True, wantLogs=True)
    self.assertEqual(build['buildid'], 1)
    patterns = [
        f"echo {expected_obfuscation}",
        base64.b64encode((expected_value + "\n").encode('utf-8')).decode('utf-8'),
    ]
    res = yield self.checkBuildStepLogExist(build, patterns)
    self.assertTrue(res)