@Test
public void testCacheRemoveEntry() {
DNSCache cache = new DNSCache();
DNSEntry entry = new DNSRecord.Service("pierre._home-sharing._tcp.local.", DNSRecordClass.CLASS_IN, false, 0, 0, 0, 0, "panoramix.local.");
cache.addDNSEntry(entry);
assertEquals("Could not retrieve the value we inserted", entry, cache.getDNSEntry(entry));
cache.removeDNSEntry(entry);
assertNull("Could not remove the value we inserted", cache.getDNSEntry(entry));