@Test public void shouldClearQueue() { MpscLinkedQueue<Object> q = new MpscLinkedQueue<>(); q.test(1, 2); assertThat(q.isEmpty()).as("isEmpty() false").isFalse(); assertThat(q).hasSize(2); q.clear(); assertThat(q.isEmpty()).as("isEmpty() true").isTrue(); assertThat(q).hasSize(0); }