@Test
public void testOffer1() throws Exception {

    Assertions.assertThrows(RejectedExecutionException.class, () -> {
        TaskQueue<Runnable> queue = new TaskQueue<Runnable>(1);
        queue.offer(mock(Runnable.class));
    });
}