public List<Link> links() {
        return links;
    }
@Test
    public void links() {
        DomainPointToPointIntent intent = createAnother();
        assertEquals("incorrect id", APPID, intent.appId());
        assertEquals("incorrect ingress",
                     intent.filteredIngressPoints().size(), 1);
        assertEquals("incorrect ingress",
                     intent.filteredIngressPoints().iterator().next(), FP2);
        assertEquals("incorrect ingress",
                     intent.filteredEgressPoints().size(), 1);
        assertEquals("incorrect ingress",
                     intent.filteredEgressPoints().iterator().next(), FP1);
        assertEquals("links are not correctly assigned",
                     intent.links(), LINKS_SET);
        assertEquals("resources are not correctly assigned",
                     intent.resources(), resources(LINKS_SET));
    }