final Map<String, Object> from = ServiceHelper.createMap(Endpoint.SERVICE_NAME, "test:wired-service",
Endpoint.ENDPOINT_NAME, "endpoint");
final Endpoint endpoint = createWiredEndpoint(from);
// make sure that the query for the wire's from returns the target endpoint
Reference ref = registry.lookup(from);
assertNotNull(ref);
assertTrue(ref instanceof InternalReference);
InternalReference reference = (InternalReference) ref;
Iterable<InternalEndpoint> endpoints = reference.choose(registry);
assertNotNull(endpoints);