def METHOD_NAME(self):
    qaoa = QuboProblem(Sat([Clause([1])], 1, 'test'))
    qclauses = [Qclause([0, 1, 2], 1), Qclause([0, 2, 3], 1),
                Qclause([0, 2], 1), Qclause([0, 1, 4], 1)]
    qaoa.qclauses = qclauses
    qaoa._replace_var(0, 1, 5)
    self.assertCountEqual(
        qaoa.qclauses,
        [Qclause([2, 5], 1), Qclause([0, 2, 3], 1),
         Qclause([0, 2], 1), Qclause([4, 5], 1)])