public static TestCallback addQueryCallback(SiddhiAppRuntime siddhiAppRuntime, String queryName,
                                                Object[]... expected) {

        TestQueryCallback callBack = new TestQueryCallback(expected);
        siddhiAppRuntime.addCallback(queryName, callBack);
        return callBack;
    }
Add a callback to the given {@link SiddhiAppRuntime} and validate the assertions.

@param siddhiAppRuntime the SiddhiAppRuntime
@param queryName        the query
@param expected         expected event data
@return TestCallback
modules/siddhi-core/src/test/java/io/siddhi/core/TestUtil.java