RequestMapper extends BaseEntity { public String[] getRequestMethodStrs() { if (ArrayUtils.isNotEmpty(requestMethods)) { String[] strings = new String[requestMethods.length]; int idx = 0; for (RequestMethod mtd : requestMethods) { strings[idx] = mtd.name(); idx++; } return strings; } return ArrayUtils.EMPTY_STRING_ARRAY; } private  RequestMapper(); static RequestMapper create(); Object getInstance(); RequestMapper setInstance(final Object instance); Class<?> getCls(); RequestMapper setCls(final Class<?> cls); Method getMethod(); RequestMapper setMethod(final Method method); RequestMethod[] getRequestMethods(); String[] getRequestMethodStrs(); RequestMapper setRequestMethods(final RequestMethod[] requestMethods); boolean hasMethod(final RequestMethod method); Map<String, String> getParam(); RequestMapper setParam(final Map<String, String> param);  }
@Test public void requestMethodStrsTest() { final RequestMapper mapper = Routes.route().lookup("/v1/test", RequestMethod.GET); final String[] methods = mapper.getRequestMethodStrs(); Assert.assertEquals(methods.length, 2); Assert.assertEquals(methods[0], RequestMethod.GET.name()); }