#vulnerable code 
                                @Test(expected = IllegalStateException.class)
    public void testCallAfterShutdown() {
        when(executorService.isShutdown()).thenReturn(true);
        getRecordsCache.pollNextResultAndUpdatePrefetchCounters();
    } 
                            #location 4 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                @Test(expected = IllegalStateException.class)
    public void testCallAfterShutdown() {
        when(executorService.isShutdown()).thenReturn(true);
        getRecordsCache.drainQueueForRequests();
    }