@Override
    public RouterFunction<ServerResponse> create(String pattern) {
        return RouterFunctions
            .route(GET("/").or(GET("/page/{page}")
                .or(GET("/index")).or(GET("/index/page/{page}"))
                .and(accept(MediaType.TEXT_HTML))), handlerFunction());
    }
@Test
    void create() {
        RouterFunction<ServerResponse> routerFunction = indexRouteFactory.create("/");
        WebTestClient webTestClient = getWebTestClient(routerFunction);

        webTestClient.get()
            .uri("/")
            .exchange()
            .expectStatus().isOk();

        webTestClient.get()
            .uri("/page/1")
            .exchange()
            .expectStatus().isOk();
    }