@Test
public void testDispatchLinkCollection() {

    // Testdaten erstellen
    List<String> refs = new ArrayList<>();
    refs.add("test");
    refs.add("gugus");
    Map<String, List<HalReference>> links = new HashMap<>();
    HalReferenceMetaData metaData = new HalReferenceMetaData();
    metaData.setName("self");
    // Test ausführen
    adapter.dispatchLink(refs, metaData, links);
    // Überprüfen
    Assert.assertEquals(1, links.size());
    List<HalReference> link = links.get("self");
    Assert.assertNotNull(link);
    Assert.assertEquals(2, link.size());
    Assert.assertEquals("test", link.get(0).getHref());
    Assert.assertEquals("gugus", link.get(1).getHref());
}