// Path: src/main/java/com/github/tminglei/swagger/fake/ConstDataProvider.java
// public class ConstDataProvider extends AbstractDataProvider implements DataProvider {
//     private Object value;
// 
//     public ConstDataProvider(Object value) {
//         this(value, "root");
//     }
//     public ConstDataProvider(Object value, String name) {
//         super(name);
//         this.value = value;
//     }
// 
//     @Override
//     protected Object create() {
//         return value;
//     }
// }


import java.util.List;
import com.github.tminglei.swagger.fake.ConstDataProvider;
import io.swagger.models.HttpMethod;
import org.junit.Test;
import static org.junit.Assert.*;
        String path = "/foo%2Fbar";

        assertEquals("foo/bar", route.getNamedParameter("test", path));
    }

    @Test
    public void getNamedParameter_HandlesEncodedSlashesCorrectlyWhenInterjected() {
        RouteImpl route = newRoute("/hello/:test/there");
        String path = "/hello/foo%2Fbar/there";

        assertEquals("foo/bar", route.getNamedParameter("test", path));
    }

    @Test
    public void getNamedParameter_WithMultipleParameters() {
        RouteImpl route = newRoute("/customer/:id/named/:name");
        String path = "/customer/1/named/John";

        assertEquals("1", route.getNamedParameter("id", path));
        assertEquals("John", route.getNamedParameter("name", path));
    }

    @Test
    public void getNamedParameter_NotFound() {
        RouteImpl route = newRoute("/customer/:id");
        String path = "/customer/1";

        assertNull(route.getNamedParameter("name", path));
    }

// Path: src/main/java/com/github/tminglei/swagger/fake/ConstDataProvider.java
// public class ConstDataProvider extends AbstractDataProvider implements DataProvider {
//     private Object value;
// 
//     public ConstDataProvider(Object value) {
//         this(value, "root");
//     }
//     public ConstDataProvider(Object value, String name) {
//         super(name);
//         this.value = value;
//     }
// 
//     @Override
//     protected Object create() {
//         return value;
//     }
// }


// Path: src/test/java/com/github/tminglei/swagger/route/TestRoute.java
import java.util.List;
import com.github.tminglei.swagger.fake.ConstDataProvider;
import io.swagger.models.HttpMethod;
import org.junit.Test;
import static org.junit.Assert.*;

        String path = "/foo%2Fbar";

        assertEquals("foo/bar", route.getNamedParameter("test", path));
    }

    @Test
    public void getNamedParameter_HandlesEncodedSlashesCorrectlyWhenInterjected() {
        RouteImpl route = newRoute("/hello/:test/there");
        String path = "/hello/foo%2Fbar/there";

        assertEquals("foo/bar", route.getNamedParameter("test", path));
    }

    @Test
    public void getNamedParameter_WithMultipleParameters() {
        RouteImpl route = newRoute("/customer/:id/named/:name");
        String path = "/customer/1/named/John";

        assertEquals("1", route.getNamedParameter("id", path));
        assertEquals("John", route.getNamedParameter("name", path));
    }

    @Test
    public void getNamedParameter_NotFound() {
        RouteImpl route = newRoute("/customer/:id");
        String path = "/customer/1";

        assertNull(route.getNamedParameter("name", path));
    }

    @Test