/wro4j-maven-plugin/src/main/java/ro/isdc/wro/maven/plugin/Wro4jMojo.java
final WroConfiguration config = Context.set( config)
final WroConfiguration config = Context.get ( ) .getConfig ( ) ;
final HttpServletRequest request = Mockito.mock(HttpServletRequest.class); Mockito.when(request.getContextPath()).thenReturn(normalizeContextPath(contextPath)); Mockito.when(request.getRequestURI()).thenReturn(group); final HttpServletResponse response = Mockito.mock(HttpServletResponse.class); resultOutputStream = new ByteArrayOutputStream(); Mockito.when(response.getOutputStream()).thenReturn(new DelegatingServletOutputStream(resultOutputStream)); <extra_id_0> config.setIgnoreEmptyGroup(true); Context.set(Context.webContext(request, response, Mockito.mock(FilterConfig.class)), config); Context.get().setAggregatedFolderPath(getAggregatedPathResolver().resolve()); getManagerFactory().create().process(); resultInputStream = new UnclosableBufferedInputStream(resultOutputStream.toByteArray()); final File destinationFile = new File(parentFoder, rename(group, resultInputStream));