a.analyzeResource(new JarResource(new File("testdata/01-bsn+version.jar")), caps, reqs);
assertEquals(4, caps.size());
Capability idcap = caps.get(0);
assertEquals("osgi.identity", idcap.getNamespace());
assertEquals("org.example.a", idcap.getAttributes().get("osgi.identity"));
assertEquals("osgi.bundle", idcap.getAttributes().get("type"));
assertEquals(new Version("0.0.0"), idcap.getAttributes().get("version"));
Capability content = caps.get(1);
assertEquals("osgi.content", content.getNamespace());
assertEquals("64f661eea43334dc5d38d7f16dbcacd02c799e68332b40e72da8021828e3329c", content.getAttributes().get("osgi.content"));
assertEquals("testdata/01-bsn+version.jar", content.getAttributes().get("url"));
assertEquals("application/vnd.osgi.bundle", content.getAttributes().get("mime"));
assertEquals(1104L, content.getAttributes().get("size"));
}