FrontController extends AbstractAjaxController { @Override protected Object invokeMethod(HttpServletRequest servletRequest) throws Exception { StepRequest sr = new StepRequest(servletRequest, UTF_8_ENCODING); return invokeMethodWithStepRequest(sr); } @Inject  FrontController(final Injector guiceInjector,
                           final AppManagerService appManagerService,
                           final ClientErrorResolver errorResolver,
                           final Provider<ClientSession> clientSessionProvider,
                           final Provider<ObjectMapper> objectMapperProvider);  static final String UTF_8_ENCODING; }
@Test public void testInvokeMethod() throws Exception { final StepRequest sr = new StepRequest("blah", "bible", "getAllFeatures", new String[]{}); final BibleController testController = mock(BibleController.class); final FrontController fc = spy(this.fcUnderTest); doReturn(testController).when(fc).getController("bible", false); fc.invokeMethodWithStepRequest(sr); verify(testController).getAllFeatures(); }