assertEquals("osgi.wiring.package", cap.getNamespace());
assertEquals("org.apache.commons.logging", cap.getAttributes().get("osgi.wiring.package"));
assertEquals(Version.parseVersion("1.0.4"), cap.getAttributes().get("version"));
Resource resource = cap.getResource();
RepositoryContent rc = (RepositoryContent) resource; // Repository Resources must implement this interface
byte[] actualBytes = Streams.suck(rc.getContent());
URL actualURL = getClass().getResource("/repo_files/test_file_1.jar");
byte[] expectedBytes = Streams.suck(actualURL.openStream());
assertTrue(Arrays.equals(expectedBytes, actualBytes));