@Test
    void testStatelessOnnxModelEvaluation() throws Exception {
        assumeTrue(OnnxRuntime.isRuntimeAvailable());
        Path appDir = Path.fromString("src/test/cfg/application/onnx");
        Path storedAppDir = appDir.append("copy");
        try {
            ImportedModelTester tester = new ImportedModelTester("onnx_rt", appDir, new DeployState.Builder());
            assertModelEvaluation(tester.createVespaModel(), appDir, false);

            // At this point the expression is stored - copy application to another location which does not have a models dir
            storedAppDir.toFile().mkdirs();
            IOUtils.copy(appDir.append("services.xml").toString(), storedAppDir.append("services.xml").toString());
            IOUtils.copyDirectory(appDir.append(ApplicationPackage.MODELS_GENERATED_DIR).toFile(),
                                  storedAppDir.append(ApplicationPackage.MODELS_GENERATED_DIR).toFile());
            IOUtils.copyDirectory(appDir.append(ApplicationPackage.SCHEMAS_DIR).toFile(),
                                  storedAppDir.append(ApplicationPackage.SCHEMAS_DIR).toFile());
            ImportedModelTester storedTester = new ImportedModelTester("onnx_rt", storedAppDir);
            assertModelEvaluation(storedTester.createVespaModel(), appDir, false);

        } finally {
            IOUtils.recursiveDeleteDir(appDir.append(ApplicationPackage.MODELS_GENERATED_DIR).toFile());
            IOUtils.recursiveDeleteDir(storedAppDir.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