StepRequest { public String[] getArgs() { return this.args; } StepRequest(final String requestURI, final String controllerName, final String methodName,
            final String[] args);  StepRequest(final HttpServletRequest request, final String encoding); ControllerCacheKey getCacheKey(); String getControllerName(); String getMethodName(); String[] getArgs(); @Override String toString(); boolean isExternal();  }
@Test public void testGetArgsFinishingWithSlash() { final String sampleRequest = "step-web/rest/bible/get/1K2/2K2/"; final HttpServletRequest req = mock(HttpServletRequest.class); when(req.getRequestURI()).thenReturn(sampleRequest); when(req.getServletPath()).thenReturn("step-web/"); when(req.getContextPath()).thenReturn("rest/"); final StepRequest sr = new StepRequest(req, UTF_8_ENCODING); assertEquals(2, sr.getArgs().length); assertEquals("1K2", sr.getArgs()[0]); assertEquals("2K2", sr.getArgs()[1]); }