private ComplexEventChunk<ComplexEvent> generateResetComplexEventChunk(int outputDataSize,
                                                                           StateEventFactory stateEventFactory) {
        StreamEvent streamEvent = new StreamEvent(outputDataSize, 0, outputDataSize);
        streamEvent.setType(ComplexEvent.Type.RESET);

        StateEvent stateEvent = stateEventFactory.newInstance();
        stateEvent.addEvent(0, streamEvent);
        stateEvent.setType(ComplexEvent.Type.RESET);

        ComplexEventChunk<ComplexEvent> complexEventChunk = new ComplexEventChunk<>();
        complexEventChunk.add(stateEvent);
        return complexEventChunk;
    }
Custom store for testing of in memory cache for store tables.
modules/siddhi-core/src/test/java/io/siddhi/core/query/table/util/TestStoreForCachePreLoading.java