private PersistenceProvider pp;
@Before
public void setUp() throws Exception
{
persistenceBundle = Skeleton.newMock(new BundleMock("scooby.doo", new Hashtable<String, Object>()), Bundle.class);
persistenceBundleContext = persistenceBundle.getBundleContext();
pp = Skeleton.newMock(PersistenceProvider.class);
providerBundleP100 = Skeleton.newMock(new BundleMock("no.such.Provider", new Hashtable<String, Object>()), Bundle.class);
Skeleton skel = Skeleton.getSkeleton(providerBundleP100);
skel.setReturnValue(new MethodCall(Bundle.class, "getVersion"), new Version("1.0.0"));
providerBundleP101 = Skeleton.newMock(new BundleMock("no.such.Provider", new Hashtable<String, Object>()), Bundle.class);
skel = Skeleton.getSkeleton(providerBundleP101);
skel.setReturnValue(new MethodCall(Bundle.class, "getVersion"), new Version("1.0.1"));
providerBundleP110 = Skeleton.newMock(new BundleMock("no.such.Provider", new Hashtable<String, Object>()), Bundle.class);
skel = Skeleton.getSkeleton(providerBundleP110);
skel.setReturnValue(new MethodCall(Bundle.class, "getVersion"), new Version("1.1.0"));
providerBundleP111 = Skeleton.newMock(new BundleMock("no.such.Provider", new Hashtable<String, Object>()), Bundle.class);
skel = Skeleton.getSkeleton(providerBundleP111);
skel.setReturnValue(new MethodCall(Bundle.class, "getVersion"), new Version("1.1.1"));
extenderBundle = Skeleton.newMock(new BundleMock("extender", new Hashtable<String, Object>()), Bundle.class);
// Skeleton.getSkeleton(extenderBundle).setReturnValue(new MethodCall(Bundle.class, "getResource", "schemas/persistence_1_0.xsd"), new File("unittest/resources/persistence_1_0.xsd").toURI().toURL());
}