final LifecycleCallback callback = Mockito.mock(LifecycleCallback.class);
final String groupName = "group";
final GroupExtractor groupExtractor = Mockito.mock(GroupExtractor.class);
Mockito.when(groupExtractor.getGroupName(Mockito.any(HttpServletRequest.class))).thenReturn(groupName);
Mockito.when(groupExtractor.getResourceType(Mockito.any(HttpServletRequest.class))).thenReturn(ResourceType.JS);
final Group group = new Group(groupName);
group.addResource(Resource.create("classpath:1.js"));
final WroModelFactory modelFactory = WroUtil.factoryFor(new WroModel().addGroup(group));