refs = getContext().getServiceReferences(CheckService.class.getName(), "(instance.name=Test)");
} catch (InvalidSyntaxException e) {
fail("Invalid filter : " + e.getMessage());
}
assertNotNull("Check refs not null", refs);
CheckService cs = (CheckService) getContext().getService(refs[0]);
assertTrue("Check invocation", cs.check());
ci.dispose();
}