DnsPacketProxy { void initialize(Context context, ArrayList<InetAddress> upstreamDnsServers) throws InterruptedException { ruleDatabase.initialize(context); this.upstreamDnsServers = upstreamDnsServers; } DnsPacketProxy(EventLoop eventLoop, RuleDatabase database);  DnsPacketProxy(EventLoop eventLoop);   }
@Test public void testInitialize() throws Exception { ArrayList<InetAddress> dnsServers = new ArrayList<>(); dnsPacketProxy = new DnsPacketProxy(mockEventLoop, Mockito.mock(RuleDatabase.class)); dnsPacketProxy.initialize(Mockito.mock(Context.class), dnsServers); assertSame(dnsServers, dnsPacketProxy.upstreamDnsServers); }