def METHOD_NAME(m):
    # Causes the additional_overlay_path to be appended
    m.return_value = True
    class MockHandler:
        pass
    handler = MockHandler()
    handler.args = ["handler_arg1", "handler_arg2"]
    handler.ready = True
    assert(ProjectBuilder.cmake_assemble_args(
        ["basearg1"],
        handler,
        ["a.conf;b.conf", "c.conf"],
        ["extra_overlay.conf"],
        ["x.overlay;y.overlay", "z.overlay"],
        ["cmake1=foo", "cmake2=bar"],
        "/builddir/",
    ) == [
        "-Dcmake1=foo", "-Dcmake2=bar",
        "-Dbasearg1",
        "-Dhandler_arg1", "-Dhandler_arg2",
        "-DCONF_FILE=a.conf;b.conf;c.conf",
        "-DDTC_OVERLAY_FILE=x.overlay;y.overlay;z.overlay",
        "-DOVERLAY_CONFIG=extra_overlay.conf "
        "/builddir/twister/testsuite_extra.conf",
    ])