public class TestBase {
public Bundle createDummyBundle(long id, final String symbolicName, Dictionary<String,String> headers) {
Bundle bundle = EasyMock.createNiceMock(Bundle.class);
// Be aware that this means all bundles are treated as different
expect(bundle.compareTo(EasyMock.<Bundle>anyObject())).andReturn(1).anyTimes();
expect(bundle.getBundleId()).andReturn(id).anyTimes();
expect(bundle.getSymbolicName()).andReturn(symbolicName).anyTimes();
expect(bundle.getHeaders()).andReturn(headers).anyTimes();
BundleStartLevel sl = EasyMock.createMock(BundleStartLevel.class);