@Test
@Parameters({"api", "/api", "api/", "/api/"})

public void addApiPathPrefixWhenSetUpForApiController(String apiPath) throws Exception {
    apiProps.setPath(apiPath);
    mappingHandler(apiProps);
    RequestMappingInfo info = handlerMapping.getMappingForMethod(ListEndpointApiController.class.getMethod("getList"), ListEndpointApiController.class);
    assertPattern(info, "/api/list-endpoint-api-controller/getList");
}