assertTrue("Check instance validity", under.getState() == ComponentInstance.VALID);
ServiceContext sc = Utils.getServiceContext(under);
ServiceReference ref = sc.getServiceReference(FooService.class.getName());
assertNotNull("Check refs not null", ref);
FooService foo = (FooService) sc.getService(ref);
Properties p = foo.fooProps();
boolean b = ((Boolean) p.get("boolProp")).booleanValue();
String s = (String) p.get("strProp");
int i = ( (Integer) p.get("intProp")).intValue();
assertTrue("Test boolean", b);
assertEquals("Test string", s, "foo");