@Test
public void testDispatchLinkHalReferenceAnn() {

    // Testdaten erstellen
    HalReference ref = new HalReference();
    ref.setHref("/rest");
    ref.setTitle("Test");
    Map<String, List<HalReference>> links = new HashMap<>();
    HalReferenceMetaData metaData = new HalReferenceMetaData();
    metaData.setName("self");
    // Test ausführen
    adapter.dispatchLink(ref, metaData, links);
    // Überprüfen
    Assert.assertEquals(1, links.size());
    List<HalReference> link = links.get("self");
    Assert.assertNotNull(link);
    Assert.assertEquals(1, link.size());
    Assert.assertEquals(ref.getTitle(), link.get(0).getTitle());
}