def METHOD_NAME(self) -> None:
    with TempSubvolumes() as ts:
        sv = ts.create("test")
        sv.run_as_root(["touch", sv.path("a")])
        sv.run_as_root(["mkdir", sv.path("x")])
        SymlinkToFileItem(from_target="t", source="a", dest="b").build(
            sv, DUMMY_LAYER_OPTS
        )
        SymlinkToDirItem(from_target="t", source="x", dest="y").build(
            sv, DUMMY_LAYER_OPTS
        )
        sv.set_readonly(True)
        SymlinkToFileItem(from_target="t", source="a", dest="b").build(
            sv, DUMMY_LAYER_OPTS
        )
        SymlinkToDirItem(from_target="t", source="x", dest="y").build(
            sv, DUMMY_LAYER_OPTS
        )