@Test
    public void array_definition_creates_correct_json() throws IOException {
        YamasJsonModel jsonModel = getYamasJsonModel("yamas-array.json");

        try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream()) {
            YamasResponse response = new YamasResponse(200, List.of(YamasJsonUtil.toMetricsPacketBuilder(jsonModel).build()), false);
            response.render(outputStream);
            assertEquals(EXPECTED_JSON, outputStream.toString());
        }
    }
Tests for YamasJsonModel and YamasArrayJsonModel

@author smorgrav
@author gjoranv
metrics-proxy/src/test/java/ai/vespa/metricsproxy/metric/model/json/YamasJsonModelTest.java