def METHOD_NAME(self) -> None:
    """
    When backpressure is hit, and no more DEBUG and INFOs cannot be culled,
    it will cut the middle messages out.
    """
    handler = RemoteHandler(
        "127.0.0.1", 9000, maximum_buffer=10, _reactor=self.reactor
    )
    logger = self.get_logger(handler)
    # Send a bunch of useful messages
    for i in range(0, 20):
        logger.warning("warn %s" % (i,))
    # Allow the reconnection
    client, server = connect_logging_client(self.reactor, 0)
    client_transport = checked_cast(FakeTransport, client.transport)
    client_transport.flush()
    # The first five and last five warnings made it through, the debugs and
    # infos were elided
    logs = server.data.decode("utf8").splitlines()
    self.assertEqual(
        ["warn %s" % (i,) for i in range(5)]
        + ["warn %s" % (i,) for i in range(15, 20)],
        logs,
    )