#fixed code
                                @Test(expected = IllegalStateException.class)
    public void testGetNextRecordsWithoutStarting() {
        verify(executorService, times(0)).execute(any());
        getRecordsCache.pollNextResultAndUpdatePrefetchCounters();
    }
#vulnerable code 
                                @Test(expected = IllegalStateException.class)
    public void testGetNextRecordsWithoutStarting() {
        verify(executorService, times(0)).execute(any());
        getRecordsCache.getNextResult();
    } 
                            #location 4 
                            #vulnerability type THREAD_SAFETY_VIOLATION