Map<String, String> headerMap = new HashMap<String, String>();
headerMap.put(Constants.BUNDLE_SYMBOLICNAME, "foo");
headerMap.put(Constants.BUNDLE_VERSION, "1.2.1.a");
headerMap.put(Constants.BUNDLE_MANIFESTVERSION, "2");
BundleArchiveRevision archiveRevision = Mockito.mock(BundleArchiveRevision.class);
Mockito.when(archiveRevision.getManifestHeader()).thenReturn(headerMap);
BundleArchive archive = Mockito.mock(BundleArchive.class);
Mockito.when(archive.getCurrentRevision()).thenReturn(archiveRevision);
Mockito.when(archive.getId()).thenReturn(3L);