@Test
public void the_feed_exposes_the_publicid() {

    Guest guest = new Guest("123", "foo", "foo@bar.de");
    guest.setLastUpdate(now());
    when(abdera.newFeed()).thenReturn(new FOMFeed());
    when(uriInfo.getBaseUri()).thenReturn(create("http://localhost/"));
    when(guestService.getAllGuests()).thenReturn(singletonList(guest));
    GuestAtomFeed guestAtomFeed = new GuestAtomFeed(guestService, abdera);
    Feed guestFeed = guestAtomFeed.getGuestFeed(uriInfo);
    List<Entry> entries = guestFeed.getEntries();
    assertThat(entries).isNotEmpty();
    Entry entry = entries.get(0);
    assertThat(entry.getLinks().get(0).getHref().toASCIIString()).endsWith("/guests/123");
}