@SuppressWarnings("unchecked") private static void setupReq() { req = Mockito.mock(RequestImpl.class); given(req.bindJSON(any(Class.class), any(JSONObject.class))).willCallRealMethod(); given(req.bindJSON(any(Class.class), any(Class.class), any(JSONObject.class))).willCallRealMethod(); given(req.setBindListener(any(BindInterceptor.class))).willCallRealMethod(); req.setBindListener(BindInterceptor.NOOP); }
@Override public BindInterceptor getBindInterceptor() { return null; }
@Override public BindInterceptor setBindListener(BindInterceptor bindListener) { return null; }