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"));
<BUG>Clazz clazz = new Clazz(path, typeResource);
</BUG>
clazz.parseClassFile();
classes.add(clazz);
doReturn(classes).when(analyzer).getClasses(Matchers.<String[]>anyVararg());

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