public static boolean isUnsortedEventsMatch(List<Object[]> actual, List<Object[]> expected) {
        if (actual.size() != expected.size()) {
            return false;
        } else {
            for (int i = 0; i < actual.size(); i++) {
                boolean isThere = false;
                for (int j = 0; j < expected.size(); j++) {
                    if (Arrays.equals(actual.get(i), expected.get(j))) {
                        isThere = true;
                        break;
                    }
                }
                if (!isThere) {
                    return false;
                }
            }
            return true;
        }
    }
Helper class ot be used by siddhi tests. Any extension can utilize methods in here
modules/siddhi-core/src/main/java/io/siddhi/core/util/SiddhiTestHelper.java