&& gwtFactory.getOverlayRewriter().isJsoIntf(f.getType().getName())) {
try {
return Class.forName(JsValueGlue.JSO_IMPL_CLASS);
} catch (ClassNotFoundException e) {
// should never happen
throw new GwtTestPatchException("Error while creating a mock with Mockito for "
+ f.getType().getName(), e);
}
} else {
// null GwtFactory means the test is a mockito test not running with gwt-test-utils, e.g.
// @RunWith(GwtRunner.class)