{
Bundle sysBundle = Mockito.mock(Bundle.class);
Mockito.when(sysBundle.getHeaders()).thenReturn(new Hashtable<String, String>());
BundleRevision br = Mockito.mock(BundleRevision.class);
Mockito.when(sysBundle.adapt(BundleRevision.class)).thenReturn(br);
Capability cap1 = new OSGiCapabilityImpl("some.system.cap",
Collections.<String, Object>singletonMap("sys.cap", "something"),
Collections.singletonMap("x", "y"));
Capability cap2 = new OSGiCapabilityImpl("some.system.cap",
Collections.<String, Object>singletonMap("sys.cap", "somethingelse"),