@Test
    void testStatelessOnnxModelNameCollision() {
        assumeTrue(OnnxRuntime.isRuntimeAvailable());
        Path appDir = Path.fromString("src/test/cfg/application/onnx_name_collision");
        try {
            ImportedModelTester tester = new ImportedModelTester("onnx", appDir);
            VespaModel model = tester.createVespaModel();
            ApplicationContainerCluster cluster = model.getContainerClusters().get("container");
            RankProfilesConfig.Builder b = new RankProfilesConfig.Builder();
            cluster.getConfig(b);
            RankProfilesConfig config = new RankProfilesConfig(b);
            assertEquals(2, config.rankprofile().size());

            Set<String> modelNames = config.rankprofile().stream().map(v -> v.name()).collect(Collectors.toSet());
            assertTrue(modelNames.contains("foobar"));
            assertTrue(modelNames.contains("barfoo"));
        } finally {
            IOUtils.recursiveDeleteDir(appDir.append(ApplicationPackage.MODELS_GENERATED_DIR).toFile());
        }
    }
Tests stateless model evaluation (turned on by the "model-evaluation" tag in "container")
for ONNX models.

@author lesters
config-model/src/test/java/com/yahoo/vespa/model/ml/StatelessOnnxEvaluationTest.java