Map<String, String> props = new HashMap<String, String>();
props.put("include-embed-bundles", "true");
String path = EmptyComponent.class.getName().replace('.', '/').concat(".class");
Resource resource2 = new URLResource(getClass().getResource("/metadata-test-component.xml"));
doReturn(dot).when(analyzer).getJar();
doReturn(resource2).when(dot).getResource(eq("META-INF/metadata.xml"));
Collection<Clazz> classes = new ArrayList<Clazz>();
Resource typeResource = new URLResource(getClass().getResource("EmptyComponent.class"));
Clazz clazz = new Clazz(analyzer, path, typeResource);
clazz.parseClassFile();
classes.add(clazz);
doReturn(classes).when(analyzer).getClasses(Matchers.<String[]>anyVararg());
Resource resource = new URLResource(getClass().getResource("/EMBED-MANIFEST-EMPTY.MF"));
doReturn(resource).when(embed).getResource(eq("META-INF/MANIFEST.MF"));
doReturn(typeResource).when(embed).getResource(path);
doReturn("aaa").when(embed).getBsn();
analyzer.setClasspath(new Jar[] {embed});