source: class SvgMaskTest {
  
      private static final String PATH_IN;
      private static final String PATH_OUT_PNG;
      private static final String PATH_OUT_SVG;
      private static int RUN;
      private static QualifiedSVGResourceFactory qualifiedSVGResourceFactory;
      private final String mask;
      private final List<QualifiedResource> resources;
      private final List<String> maskedResourcesNames;
      private final File dir;
      private final boolean useSameSvgOnlyOnceInMask;
      private static SvgDrawablePlugin plugin;
      private static File output;
  
      @Test
      public void fromJson() throws TransformerException, ParserConfigurationException, SAXException, IOException, XPathExpressionException, InstantiationException, IllegalAccessException, TranscoderException  {
  
target:     	QualifiedResource maskResource = qualifiedSVGResourceFactory.fromSVGFile(new File(PATH_IN, mask));
      	SvgMask svgMask = new SvgMask(maskResource);
      	Collection<QualifiedResource> maskedResources = svgMask.generatesMaskedResources(qualifiedSVGResourceFactory, dir, resources, useSameSvgOnlyOnceInMask, OverwriteMode.always);
      	assertEquals(maskedResourcesNames.size(), maskedResources.size());
      	assertEquals(maskedResourcesNames.size(), dir.list().length);
      	QualifiedResource qr;
      	for (String maskedResource : maskedResourcesNames) {
  			File masked = new File(dir, maskedResource);
  			assertTrue(masked.getName() + " does not exists", masked.exists());
  			qr = qualifiedSVGResourceFactory.fromSVGFile(masked);
      		assertTrue(qr.exists());
              plugin.transcode(qr, mdpi, output, null);
      	}
      }
  
  }