@Test
public void fromJson() throws TransformerException, ParserConfigurationException, SAXException, IOException, XPathExpressionException, InstantiationException, IllegalAccessException, TranscoderException  {

	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) {
ile masked = new File(dir, maskedResource);
ssertTrue(masked.getName() + " does not exists", masked.exists());
r = qualifiedSVGResourceFactory.fromSVGFile(masked);
		assertTrue(qr.exists());
        plugin.transcode(qr, mdpi, output, null);
	}
}