registry.register(new DummyEndpoint(), ServiceHelper.createMap(Endpoint.NAME, "id", Endpoint.UNTARGETABLE, "true"));
// make sure that the query for the wire's from returns the target endpoint
Reference ref = registry.lookup(ServiceHelper.createMap());
assertNotNull(ref);
assertTrue(ref instanceof InternalReference);
InternalReference reference = (InternalReference) ref;
Iterable<InternalEndpoint> endpoints = reference.choose(registry);
assertNotNull(endpoints);
assertFalse(endpoints.iterator().hasNext());
}