def METHOD_NAME(rule_runner: RuleRunner) -> None:
    artifacts = ArtifactRequirements(
        [ArtifactRequirement(Coordinate("org.hamcrest", "hamcrest-core", "1.3"))]
    )
    result = rule_runner.request(
        GenerateLockfileResult,
        [
            GenerateJvmLockfile(
                artifacts=artifacts, resolve_name="test", lockfile_dest="lock.txt", diff=False
            )
        ],
    )
    digest_contents = rule_runner.request(DigestContents, [result.digest])
    assert len(digest_contents) == 1
    expected = CoursierResolvedLockfile(
        entries=(
            CoursierLockfileEntry(
                coord=Coordinate(
                    group="org.hamcrest",
                    artifact="hamcrest-core",
                    version="1.3",
                ),
                file_name="org.hamcrest_hamcrest-core_1.3.jar",
                direct_dependencies=Coordinates([]),
                dependencies=Coordinates([]),
                file_digest=FileDigest(
                    fingerprint="66fdef91e9739348df7a096aa384a5685f4e875584cce89386a7a47251c4d8e9",
                    serialized_bytes_length=45024,
                ),
            ),
        ),
        metadata=JVMLockfileMetadata.new(artifacts),
    )
    assert CoursierResolvedLockfile.from_serialized(digest_contents[0].content) == expected