def METHOD_NAME(rule_runner: RuleRunner) -> None:
    rule_runner.write_files({"Bar.java": BAD_FILE, "BUILD": "java_sources(name='t')"})
    tgt = rule_runner.get_target(Address("", target_name="t", relative_file_path="Bar.java"))
    fmt_result = run_google_java_format(rule_runner, [tgt])
    assert fmt_result.output == rule_runner.make_snapshot({"Bar.java": FIXED_BAD_FILE})
    assert fmt_result.did_change is True