@Test
  public void testIgnoresChanges() throws Exception {
    List<ServiceEndPoint> endPoints = Lists.newArrayList(FOO);
    FixedHostDiscovery discovery = new FixedHostDiscovery(endPoints);

    // Change the backing list, verify it doesn't affect FixedHostDiscovery
    endPoints.remove(FOO);
    assertEquals(1, Iterables.size(discovery.getHosts()));

    endPoints.add(BAR);
    assertEquals(1, Iterables.size(discovery.getHosts()));
  }
 @Test
 public void testAddListener() {
   // Verify it doesn't blow up
   _discovery.addListener(null);
 }
 @Test
 public void testRemoveListener() {
   // Verify it doesn't blow up
   _discovery.removeListener(null);
 }
 @Test
 public void testClose() throws IOException {
   _discovery.close();
 }