{#if input.extra-codestarts.contains("integration-tests")}
package {package-name}.it;

import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.is;

import org.junit.jupiter.api.Test;

import io.quarkus.test.junit.QuarkusTest;

public class {class-name-base}CodestartTest {

    @RegisterExtension
    public static QuarkusCodestartTest codestartTest = QuarkusCodestartTest.builder()
        .languages(Language.JAVA)
        .setupStandaloneExtensionTest("{group-id}:{namespace.id}{extension.id}")
        .build();

    @Test
    void testContent() throws Throwable {
        codestartTest.checkGeneratedSource("org.acme.{class-name-base}Resource");
    }

    @Test
    void buildAllProjects() throws Throwable {
        codestartTest.buildAllProjects();
    }
}

{#else}
<SKIP>
{/if}
@@ -91,162 +91,237 @@
 ort 
-static io.restassured.RestAssured.given;%0Aimport static org.hamcrest.Matchers.is;%0A%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport io.quarkus.test.junit.Quarkus
+org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.RegisterExtension;%0A%0Aimport io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartCatalog.Language;%0Aimport io.quarkus.devtools.testing.codestarts.QuarkusCodestart
 Test
@@ -613,16 +613,324 @@
 ild();%0A%0A
+    /**%0A     *  Make sure the generated code meets the expectations.%0A     *  %3Cbr%3E%0A     *  The generated code uses mocked data to be immutable and allow snapshot testing.%0A     *  %3Cbr%3E%3Cbr%3E%0A     *%0A     *  Read the doc: %3Cbr%3E%0A     *  %7B@link https://quarkus.io/guides/extension-codestart#integration-test%7D%0A     */%0A
     @Tes
@@ -973,32 +973,34 @@
 wable %7B%0A        
+//
 codestartTest.ch
@@ -1032,33 +1032,136 @@
 cme.
-%7Bclass-name-base%7DR
+SomeClass%22);%0A        //codestartTest.assertThatGeneratedFileMatchSnapshot(Language.JAVA, %22%5C%22src/main/resources/some-r
 esource
+.ext
 %22);%0A
@@ -1167,16 +1167,126 @@
 %0A    %7D%0A%0A
+    /**%0A     * This test runs the build (with tests) on generated projects for all selected languages%0A     */%0A
     @Tes

Fix template