    @Test
    public void shouldAppendLinks() {

        RESTServiceDiscovery initialLinks = new RESTServiceDiscovery();
        initialLinks.addLink(URI.create("https://resteasy.github.io"), "resteasy");
        EntityWithLinks entity = new EntityWithLinks(initialLinks);

        RESTServiceDiscovery newLinks = new RESTServiceDiscovery();
        newLinks.addLink(URI.create("http://example.com"), "example");

        injector.inject(entity, newLinks);

        Assert.assertEquals(2, entity.getRestServiceDiscovery().size());
        Assert.assertEquals("https://resteasy.github.io",
                entity.getRestServiceDiscovery().getLinkForRel("resteasy").getHref());
        Assert.assertEquals("http://example.com", entity.getRestServiceDiscovery().getLinkForRel("example").getHref());
    }