def METHOD_NAME(self):
    """Test composing on named and unnamed registers."""
    qr = QuantumRegister(1, "my_qr")
    cr = ClassicalRegister(1, "my_cr")
    top = QuantumCircuit(qr, cr)
    top.x(0)
    top.measure(0, 0)
    bottom = QuantumCircuit(2)
    bottom.y(0)
    bottom.z(1)
    expect = QuantumCircuit(qr, *bottom.qregs, cr)
    expect.x(0)
    expect.y(1)
    expect.z(2)
    expect.measure(0, 0)
    self.assertEqual(bottom.tensor(top), expect)