throws Exception {
final HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
Mockito.when(request.getRequestURI()).thenReturn("/app/g1.css");
final Context context = Context.webContext(request,
Mockito.mock(HttpServletResponse.class, Mockito.RETURNS_DEEP_STUBS), Mockito.mock(FilterConfig.class));
final WroConfiguration config = new WroConfiguration();
// make it run each 1 second
config.setModelUpdatePeriod(1);
config.setCacheUpdatePeriod(1);
Context.unset();
Context.set(context, config);
managerFactory.create().process();
// let scheduler run a while