@Test
@Parameters({

        "List?Controller, /endpoint-api/getList",
        "ListController, /list-endpoint-api-controller/getList",
        "List?Controller?, /endpoint-api/getList",
        "?Controller, /list-endpoint-api/getList",
        "List?, /endpoint-api-controller/getList",
        "SomeList?, /list-endpoint-api-controller/getList", // won't match
        "List?ControllerEnd, /list-endpoint-api-controller/getList", // won't match
        "?, /list-endpoint-api-controller/getList"})
public void shouldHandlePrefixAndSuffixWhenPatternProvided(String pattern, String expectedUrl) throws Exception {
    apiProps.getResources().setClassNamePattern(pattern);
    mappingHandler(apiProps);
    RequestMappingInfo info = handlerMapping.getMappingForMethod(ListEndpointApiController.class.getMethod("getList"), ListEndpointApiController.class);
    assertPattern(info, expectedUrl);
}