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