@Test
  public void testCreateAsyncEventQueueWithNullListener() {
    asyncEventQueueFactory = new AsyncEventQueueFactoryImpl(cache);

    assertThatThrownBy(() -> asyncEventQueueFactory.create("id", null))
        .isInstanceOf(IllegalArgumentException.class);
  }
Test to verify that AsyncEventQueue can not be created when null listener is passed.
geode-core/src/test/java/org/apache/geode/cache/asyncqueue/internal/AsyncEventQueueFactoryImplTest.java