@Test
public void shouldFormatName() throws Exception {

    apiProps.getResources().setClassNamePattern("List?Controller");
    apiProps.getResources().setCaseFormat(CaseFormat.LOWER_CAMEL);
    mappingHandler(apiProps);
    RequestMappingInfo info = handlerMapping.getMappingForMethod(ListEndpointApiController.class.getMethod("getList"), ListEndpointApiController.class);
    assertPattern(info, "/endpointApi/getList");
}