@Test
public void testStartQueryEntryWithExecutionCount() {

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