throws Exception {
final List<Resource> resources = new ArrayList<Resource>();
resources.add(Resource.create("var a=1;//comment", ResourceType.JS));
resources.add(Resource.create("a=2;", ResourceType.JS));
final UriLocatorFactory locatorFactory = new SimpleUriLocatorFactory().addLocator(WroTestUtils.createResourceMockingLocator());
final WroManagerFactory managerFactory = new BaseWroManagerFactory().setUriLocatorFactory(locatorFactory).setProcessorsFactory(
new SimpleProcessorsFactory());
InjectorBuilder.create(managerFactory).build().inject(victim);
final String result = victim.processAndMerge(resources, false);
compare("var a=1;//comment\na=2;\n", result);