@Test
public void testStartAsyncQueryEntry() {

    assertThat(
            threadContext.startAsyncQueryEntry(null, "text", queryMessageSupplier, timerName))
                    .isEqualTo(NopTransactionService.ASYNC_QUERY_ENTRY);
    assertThat(
            threadContext.startAsyncQueryEntry("type", null, queryMessageSupplier, timerName))
                    .isEqualTo(NopTransactionService.ASYNC_QUERY_ENTRY);
    assertThat(threadContext.startAsyncQueryEntry("type", "text", null, timerName))
            .isEqualTo(NopTransactionService.ASYNC_QUERY_ENTRY);
    assertThat(threadContext.startAsyncQueryEntry("type", "text", queryMessageSupplier, null))
            .isEqualTo(NopTransactionService.ASYNC_QUERY_ENTRY);
    assertThat(
            threadContext.startAsyncQueryEntry("type", "text", queryMessageSupplier, timerName)
                    .getClass().getName()).endsWith("$DummyTraceEntryOrQuery");
}