def METHOD_NAME(self, cbInQue):
    port = RegularFileSerialPort(
        protocol=self.protocol,
        deviceNameOrPortNumber=self.path,
        reactor=self.reactor,
        cbInQue=cbInQue,
    )
    port.serialReadEvent()
    port.write(b"")
    port.write(b"abcd")
    port.write(b"ABCD")
    port.serialWriteEvent()
    port.serialWriteEvent()
    port.connectionLost(Failure(Exception("Cleanup")))
    # No assertion since the point is simply to make sure that in all cases
    # the port handle resolves instead of raising an exception.