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"));