@Test
public void defaultReturnedWhenNoBetterMatch() throws Exception {

    File f = buildFile("domain linecorp.local\n" +
                       "nameserver 127.0.0.2\n" +
                       "nameserver 127.0.0.3\n");
    File f2 = buildFile("domain squarecorp.local\n" +
                        "nameserver 127.0.0.4\n" +
                        "nameserver 127.0.0.5\n");
    UnixResolverDnsServerAddressStreamProvider p =
            new UnixResolverDnsServerAddressStreamProvider(f, f2);
    DnsServerAddressStream stream = p.nameServerAddressStream("somehost");
    assertHostNameEquals("127.0.0.2", stream.next());
    assertHostNameEquals("127.0.0.3", stream.next());
}