assertSame(appContext.getBean("string"), getServiceAtIndex(0));
}
public void testBiggerService() throws Exception {
OsgiServiceFactoryBean exporter = (OsgiServiceFactoryBean) appContext.getBean("&manyOptions");
assertTrue(Arrays.equals(new Class[] { Serializable.class, CharSequence.class }, getInterfaces(exporter)));
Properties prop = new Properties();
prop.setProperty("foo", "bar");
prop.setProperty("white", "horse");
assertEquals(prop, exporter.getServiceProperties());
// Should be wrapped with a TCCL setting proxy
System.out.println(getServiceAtIndex(1));
assertNotSame(appContext.getBean("string"), getServiceAtIndex(1));