@Test
    public void testNestRuleGenerate() {
        String generate = arrayGenerator.generate("array|{\"ints\":${array|10|3}}|3", null);
        assertEquals("{\"ints\":[10,10,10]},{\"ints\":[10,10,10]},{\"ints\":[10,10,10]}", generate);

        generate = arrayGenerator.generate("array|{\"int\":${expression|#oneOf(10)}}|3", null);
        assertEquals("{\"int\":10},{\"int\":10},{\"int\":10}", generate);
    }
The test case for {@link ArrayGenerator}.
shenyu-plugin/shenyu-plugin-mock/src/test/java/org/apache/shenyu/plugin/mock/generator/ArrayGeneratorTest.java