};
ServiceReferenceInjectionBeanPostProcessor p = new ServiceReferenceInjectionBeanPostProcessor();
p.setBundleContext(context);
p.setBeanClassLoader(getClass().getClassLoader());
PropertyValues pvs = p.postProcessPropertyValues(new MutablePropertyValues(), new PropertyDescriptor[] {
new PropertyDescriptor("serviceBean", ServiceFactoryBean.class),
new PropertyDescriptor("serializableBean", ServiceFactoryBean.class) }, bean, "myBean");
MyService msb = (MyService) pvs.getPropertyValue("serviceBean").getValue();
Serializable ssb = (Serializable) pvs.getPropertyValue("serializableBean").getValue();
assertNotNull(msb);
assertNotNull(ssb);
assertSame(bean1.getId(), msb.getId());