}
@Test
public void getEndpoints() throws Exception {
EndpointNode endpointNode1 = new EndpointNodeImpl(backend,serviceNode, ENDPOINT_1);
EndpointNode endpointNode2 = new EndpointNodeImpl(backend,serviceNode, ENDPOINT_2);
ServiceNodeImpl eqServiceNode = eq(serviceNode);
NodeMapper<EndpointNode> anyMapper = anyObject();
expect(backend.getChildren(eqServiceNode, anyMapper)).
andReturn(Arrays.asList(endpointNode1, endpointNode2));