private Registry createRegistryWithInterceptedService(String serviceName, String serviceInterface, String implementationClass,
final List interceptedMethods)
{
ModuleDefinitionImpl module = createModuleDefinition("hivemind.test.services");
ModuleDefinitionHelper helper = new ModuleDefinitionHelper(module);
ServicePointDefinition sp = helper.addServicePoint(serviceName, serviceInterface);
helper.addSimpleServiceImplementation(sp, implementationClass, ServiceModel.SINGLETON);
// Add logging interceptor
InterceptorConstructor constructor = new AbstractServiceInterceptorConstructor(module.getLocation()) {