def METHOD_NAME(self):
    """Test if the permutation {0->2,1->0,2->1} is implemented correctly."""
    v = QuantumRegister(3, "v")  # virtual qubits
    coupling = CouplingMap([[0, 1], [1, 2]])
    from_layout = Layout({v[0]: 0, v[1]: 1, v[2]: 2})
    to_layout = Layout({v[0]: 2, v[1]: 0, v[2]: 1})
    ltpass = LayoutTransformation(
        coupling_map=coupling, from_layout=from_layout, to_layout=to_layout, seed=42
    )
    qc = QuantumCircuit(3)
    dag = circuit_to_dag(qc)
    output_dag = ltpass.run(dag)
    expected = QuantumCircuit(3)
    expected.swap(1, 0)
    expected.swap(1, 2)
    self.assertEqual(circuit_to_dag(expected), output_dag)