void () { String element = "1"; myQueue.add(element); assertEquals(1, myQueue.size()); assertFalse(myQueue.isEmpty()); assertThat(myQueue).containsExactly(element); assertSame(element, myQueue.poll()); testEmpty(); myQueue.add("2"); assertEquals(1, myQueue.size()); myQueue.add("3"); assertEquals(2, myQueue.size()); assertThat(new ArrayList<>(myQueue)).containsExactly("2", "3"); assertEquals("2", myQueue.poll()); assertEquals("3", myQueue.poll()); testEmpty(); }