return createWiredEndpoint(from, ServiceHelper.createMap(Endpoint.SERVICE_NAME, "test:service",
Endpoint.ENDPOINT_NAME, "endpoint"));
}
private Endpoint createWiredEndpoint(Map<String, Object> from, Map<String, Object> to) {
final Endpoint endpoint = new DummyEndpoint();
registry.register(endpoint, to);
nmr.getWireRegistry().register(ServiceHelper.createWire(from, to));
return endpoint;
}