def METHOD_NAME(self):
    """Test an end-to-end rqaoa running on a local docker instance"""
    input_data_path = os.path.join(
        os.environ["AMZN_BRAKET_INPUT_DIR"], "input_data/"
    )
    # Create the rqaoa
    r = RQAOA()
    r.set_rqaoa_parameters(n_cutoff=6)
    r.set_classical_optimizer(maxiter=3, save_intermediate=False)
    r.set_device(
        create_device("aws", "arn:aws:braket:::device/quantum-simulator/amazon/sv1")
    )
    ### The following lines are needed to fool the github actions into correctly executing q.compile() !!
    r.device.check_connection = MagicMock(return_value=True)
    r.device.qpu_connected = True
    r.device.provider_connected = True
    r.device.n_qubits = self.n_qubits
    r.device.backend_device = ""
    r.device.aws_region = "us-east-1"
    r.compile(self.vc)
    r.dump(
        file_name="openqaoa_params.json",
        file_path=input_data_path,
        prepend_id=False,
        overwrite=True,
    )
    job = LocalQuantumJob.create(
        device="arn:aws:braket:::device/quantum-simulator/amazon/sv1",
        source_module="./src/openqaoa-braket/tests/jobs_test_input/aws_braket_source_module/openqaoa_rqaoa_script.py",
        image_uri="amazon-braket-oq-dev",
        input_data={"input_data": input_data_path},
    )
    assert (job.state() == "COMPLETED") and (job.result() != None) == True