@Override
    public void clear() {
        super.clear();
        memoryLimiter.reset();
    }
@Test
    public void testClear() {
        MemoryLimitedLinkedBlockingQueue<Runnable> queue = new MemoryLimitedLinkedBlockingQueue<>(instrumentation);
        queue.offer(() -> {
        });
        queue.clear();
        assertEquals(0, queue.getCurrentMemory());
    }