{
ModuleDescriptor md = parse("GenericModule.xml");
List l = md.getServicePoints();
assertEquals(2, l.size());
ServicePointDescriptor spd = (ServicePointDescriptor) l.get(0);
assertEquals("MyService1", spd.getId());
assertEquals("package.MyService", spd.getInterfaceClassName());
CreateInstanceDescriptor cid = (CreateInstanceDescriptor) spd.getInstanceBuilder();
assertEquals("package.impl.MyServiceImpl", cid.getInstanceClassName());
l = spd.getInterceptors();
assertEquals(2, l.size());
InterceptorDescriptor id = (InterceptorDescriptor) l.get(0);
assertEquals("MyInterceptor", id.getFactoryServiceId());
assertEquals("OtherInterceptor", id.getBefore());