@@ -0,0 +1,1228 @@
+package io.quarkus.smallrye.openapi.test;%0A%0Aimport static org.hamcrest.Matchers.containsString;%0A%0Aimport org.jboss.shrinkwrap.api.ShrinkWrap;%0Aimport org.jboss.shrinkwrap.api.asset.StringAsset;%0Aimport org.jboss.shrinkwrap.api.spec.JavaArchive;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.RegisterExtension;%0A%0Aimport io.quarkus.test.QuarkusUnitTest;%0Aimport io.restassured.RestAssured;%0A%0A/**%0A * This test is a reproducer for https://github.com/quarkusio/quarkus/issues/4613.%0A */%0Apublic class SwaggerAndOpenAPIWithCommonPrefixTest %7B%0A%0A    @RegisterExtension%0A    static final QuarkusUnitTest config = new QuarkusUnitTest()%0A            .setArchiveProducer(() -%3E ShrinkWrap.create(JavaArchive.class)%0A                    .addClass(OpenApiResource.class)%0A                    .addAsResource(new StringAsset(%22quarkus.smallrye-openapi.path=/swagger%22), %22application.properties%22));%0A%0A    @Test%0A    public void shouldWorkEvenWithCommonPrefix() %7B%0A        RestAssured.when().get(%22/swagger-ui/index.html%22).then().statusCode(200).body(containsString(%22/swagger%22));%0A        RestAssured.when().get(%22/swagger%22).then().statusCode(200)%0A                .body(containsString(%22/resource%22), containsString(%22QUERY_PARAM_1%22));%0A    %7D%0A%7D%0A

Add a reproducer for #4613.