@Test
public void testUnit() {
Element e = getTestElement("unit");
BeanMetadata bean =
(BeanMetadata) sut.decorate(e, new BeanMetadataImpl(), parserCtx);
BeanProperty property = (BeanProperty) bean.getProperties().get(0);
ReferenceMetadata reference = (ReferenceMetadata) property.getValue();
assertEquals("emf", property.getName());
assertEquals(EntityManagerFactory.class.getName(), reference.getInterface());
assertEquals("(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=myUnit))", reference.getFilter());
Skeleton.getSkeleton(manager).assertSkeletonNotCalled();