def METHOD_NAME(item, prefix, secret, expected, fx_reset_environmental_variables, caplog):
    manager = ProtectedSecretsManager()
    os.environ["SECRET"] = secret
    os.environ["SECRET_2"] = "2"
    replaced = AppConfigManager.replace_secret_in_config(item, manager, prefix)
    assert replaced == expected
    assert "Failed to find" not in caplog.text