}
public void testEndpointWiringOnQuery() throws Exception {
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
List<Endpoint> result = registry.query(from);
assertEquals(1, result.size());
assertEquals(endpoint, ((InternalEndpoint) result.get(0)).getEndpoint());