def METHOD_NAME(monkeypatch):
    class Options:
        catkin_tools_cmake_args = list()
        catkin_tools_packages = list()
    plugin = catkin_tools.CatkinToolsPlugin(part_name="my-part", options=Options())
    monkeypatch.setattr(sys, "path", ["", "/test"])
    monkeypatch.setattr(sys, "executable", "/test/python3")
    monkeypatch.setattr(_ros, "__file__", "/test/_ros.py")
    monkeypatch.setattr(os, "environ", dict())
    assert plugin.get_build_commands() == [
        'state="$(set +o); set -$-"',
        "set +u",
        'if [ -f "${SNAPCRAFT_PART_INSTALL}/opt/ros/${ROS_DISTRO}/setup.sh" ]; then',
        "set -- --local",
        '_CATKIN_SETUP_DIR="${SNAPCRAFT_PART_INSTALL}/opt/ros/${ROS_DISTRO}" . "${SNAPCRAFT_PART_INSTALL}/opt/ros/${ROS_DISTRO}/setup.sh"',
        "set -- --local --extend",
        "else",
        "set -- --local",
        "fi",
        '. /opt/ros/"${ROS_DISTRO}"/setup.sh',
        'eval "${state}"',
        "if [ ! -f /etc/ros/rosdep/sources.list.d/20-default.list ]; then",
        "sudo --preserve-env=http_proxy,https_proxy rosdep init; fi",
        'rosdep update --include-eol-distros --rosdistro "${ROS_DISTRO}"',
        'rosdep install --default-yes --ignore-packages-from-source --from-paths "${SNAPCRAFT_PART_SRC_WORK}"',
        'state="$(set +o); set -$-"',
        "set +u",
        'if [ -f "${SNAPCRAFT_PART_INSTALL}/opt/ros/${ROS_DISTRO}/setup.sh" ]; then',
        "set -- --local",
        '_CATKIN_SETUP_DIR="${SNAPCRAFT_PART_INSTALL}/opt/ros/${ROS_DISTRO}" . "${SNAPCRAFT_PART_INSTALL}/opt/ros/${ROS_DISTRO}/setup.sh"',
        "set -- --local --extend",
        "else",
        "set -- --local",
        "fi",
        '. /opt/ros/"${ROS_DISTRO}"/setup.sh',
        'eval "${state}"',
        "catkin init",
        "catkin profile add -f default",
        "catkin config --profile default --install "
        '--source-space "${SNAPCRAFT_PART_SRC_WORK}" --build-space "${SNAPCRAFT_PART_BUILD}" '
        '--install-space "${SNAPCRAFT_PART_INSTALL}/opt/ros/${ROS_DISTRO}"',
        'catkin build --no-notify --profile default -j "${SNAPCRAFT_PARALLEL_BUILD_COUNT}"',
        "env -i LANG=C.UTF-8 LC_ALL=C.UTF-8 /test/python3 -I "
        "/test/_ros.py "
        'stage-runtime-dependencies --part-src "${SNAPCRAFT_PART_SRC_WORK}" --part-install "${SNAPCRAFT_PART_INSTALL}" '
        '--ros-version "${ROS_VERSION}" --ros-distro "${ROS_DISTRO}" --target-arch "${SNAPCRAFT_TARGET_ARCH}"',
    ]