MockitoAnnotations.initMocks(this);
final Context context = Context.webContext(Mockito.mock(HttpServletRequest.class),
Mockito.mock(HttpServletResponse.class, Mockito.RETURNS_DEEP_STUBS), Mockito.mock(FilterConfig.class));
Context.set(context, newConfigWithUpdatePeriodValue(0));
managerFactory = new BaseWroManagerFactory().setModelFactory(getValidModelFactory()).setResourceAuthorizationManager(
mockAuthorizationManager);
final Injector injector = new InjectorBuilder(managerFactory).build();
victim = managerFactory.create();
injector.inject(victim);