protected String stripBasePath(String requestPath, ContainerConfig config) {
        if (!config.isStripBasePath()) {
            return requestPath;
        }

        if (requestPath.startsWith(config.getServiceBasePath())) {
            String newRequestPath = requestPath.replaceFirst(config.getServiceBasePath(), "");
            if (!newRequestPath.startsWith("/")) {
                newRequestPath = "/" + newRequestPath;
            }
            return newRequestPath;
        }

        return requestPath;
    }
@Test
    void requestReader_stripBasePath() {
        ContainerConfig config = ContainerConfig.defaultConfig();
        String requestPath = "/" + BASE_PATH_MAPPING + ORDERS_URL;

        String finalPath = requestReader.stripBasePath(requestPath, config);
        assertNotNull(finalPath);
        assertEquals(requestPath, finalPath);

        config.setStripBasePath(true);
        config.setServiceBasePath(BASE_PATH_MAPPING);
        finalPath = requestReader.stripBasePath(requestPath, config);
        assertNotNull(finalPath);
        assertEquals(ORDERS_URL, finalPath);

        finalPath = requestReader.stripBasePath(ORDERS_URL, config);
        assertNotNull(finalPath);
        assertEquals(ORDERS_URL, finalPath);
    }