/wro4j-maven-plugin/src/main/java/ro/isdc/wro/maven/plugin/Wro4jMojo.java
Context.get( ) , config) ;
Context.set ( Context.webContext ( request, response, Mockito.mock ( FilterConfig.class ) ) , config ) ;
Mockito.when(request.getRequestURI()).thenReturn(group); 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); <extra_id_0> Context.get().setAggregatedFolderPath(getAggregatedPathResolver().resolve()); 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()) {