@Test
public void testBuilder()
{

    assertAnnouncement(serviceAnnouncement("foo").build(), "foo", ImmutableMap.of());
    assertAnnouncement(serviceAnnouncement("foo").build(), "foo", ImmutableMap.of());
    assertAnnouncement(serviceAnnouncement("foo").addProperty("a", "apple").build(),
            "foo",
            ImmutableMap.of("a", "apple"));
    assertAnnouncement(serviceAnnouncement("foo").addProperties(ImmutableMap.of("a", "apple", "b", "banana")).build(),
            "foo",
            ImmutableMap.of("a", "apple", "b", "banana"));
}