tm.begin();
emf.createEntityManager().getProperties();
//Quiesce the Unit, nothing should happen
QuiesceParticipant participant = getParticipant("org.apache.aries.jpa.container");
TestQuiesceCallback unitCallback = new TestQuiesceCallback();
participant.quiesce(unitCallback, Collections.singletonList(getBundle(
"org.apache.aries.jpa.org.apache.aries.jpa.container.itest.bundle")));
Thread.sleep(1000);
assertFalse("Quiesce finished", unitCallback.bundleClearedUp());
emf = getOsgiService(EntityManagerFactory.class, "(&(osgi.unit.name=test-unit)("
+ PersistenceUnitConstants.CONTAINER_MANAGED_PERSISTENCE_UNIT + "=true)" +
"(" + PersistenceContextProvider.PROXY_FACTORY_EMF_ATTRIBUTE + "=*))", DEFAULT_TIMEOUT);
//Quiesce the context, still nothing
participant = getParticipant("org.apache.aries.jpa.container.context");
TestQuiesceCallback contextCallback = new TestQuiesceCallback();
participant.quiesce(contextCallback, Collections.singletonList(getBundle(
"org.apache.aries.jpa.org.apache.aries.jpa.container.itest.bundle")));
Thread.sleep(1000);
assertFalse("Quiesce finished", unitCallback.bundleClearedUp());