@Test
    public void testContextOverflowPolicyFail() {
        var llmConfig = new LlmLocalClientConfig.Builder()
                .parallelRequests(1)
                .contextSize(25)
                .seed(42)
                .contextOverflowPolicy(LlmLocalClientConfig.ContextOverflowPolicy.Enum.FAIL)
                .model(ModelReference.valueOf(MEDIUM_LLM_PATH));
        
        var llm = new LocalLLM(llmConfig.build());

        var task = TASKS.get(0);
        try {
            new CompletionTest(llm, task.input)
                    .expectException(new LanguageModelException(413, "context size per request"))
                    .test();
        } finally {
            llm.deconstruct();
        }
    }
Tests for LocalLLM.
Tests are disabled to avoid running them automatically as part of the CI/CD.
The reason for this is the long time it takes to download (2-5 min) and run LLMs (10-60 seconds).
Still, these tests can be triggered manually and are useful for debugging runtime issues.

@author lesters
@author glebashnik
model-integration/src/test/java/ai/vespa/llm/clients/LocalLLMTest.java