props2 = new HashMap<Object, Object>();
props2.put("prop2", "value2");
emf1 = Skeleton.newMock(EntityManagerFactory.class);
Skeleton.getSkeleton(emf1).setReturnValue(new MethodCall(EntityManagerFactory.class,
"createEntityManager", props1), Skeleton.newMock(EntityManager.class));
Skeleton.getSkeleton(emf1).setReturnValue(new MethodCall(EntityManagerFactory.class,
"createEntityManager", props2), Skeleton.newMock(EntityManager.class));
emf2 = Skeleton.newMock(EntityManagerFactory.class);
Skeleton.getSkeleton(emf2).setReturnValue(new MethodCall(EntityManagerFactory.class,
"createEntityManager", props1), Skeleton.newMock(EntityManager.class));
Skeleton.getSkeleton(emf2).setReturnValue(new MethodCall(EntityManagerFactory.class,
"createEntityManager", props2), Skeleton.newMock(EntityManager.class));
contexts = new JTAPersistenceContextRegistry(ctx);
ref = Skeleton.newMock(ServiceReference.class);
Skeleton.getSkeleton(ctx).setReturnValue(new MethodCall(BundleContext.class,
"getService", ref), tsr);
contexts.addingService(ref);
}