PojoizationPlugin plugin = new PojoizationPlugin();
Map<String, String> props = new HashMap<String, String>();
props.put("include-embed-bundles", "true");
Resource resource = new URLResource(getClass().getResource("/EMBED-MANIFEST.MF"));
Resource resource2 = new URLResource(getClass().getResource("/metadata-components-only.xml"));
doReturn(dot).when(analyzer).getJar();
doReturn(resource).when(embed).getResource(eq("META-INF/MANIFEST.MF"));
doReturn(resource2).when(dot).getResource(eq("META-INF/metadata.xml"));
analyzer.setClasspath(new Jar[]{embed});