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

public void addPrefixWhenDefaultPrefixSetUpForApiController(String defaultPrefix) throws Exception {
    apiProps.getResources().setDefaultPrefix(defaultPrefix);
    mappingHandler(apiProps);
    RequestMappingInfo info = handlerMapping.getMappingForMethod(ListEndpointApiController.class.getMethod("getList"), ListEndpointApiController.class);
    assertPattern(info, "/v1/list-endpoint-api-controller/getList");
}