DefaultDispatcher implements Dispatcher { @Override public void setConnectionTimeOut(int timeOut) { mTimeOut = timeOut; mPacketSender.setTimeout(mTimeOut); } DefaultDispatcher(EventCache eventCache, Connectivity connectivity, PacketFactory packetFactory, PacketSender packetSender); @Override int getConnectionTimeOut(); @Override void setConnectionTimeOut(int timeOut); @Override void setDispatchInterval(long dispatchInterval); @Override long getDispatchInterval(); @Override void setDispatchGzipped(boolean dispatchGzipped); @Override boolean getDispatchGzipped(); @Override void setDispatchMode(DispatchMode dispatchMode); @Override DispatchMode getDispatchMode(); @Override boolean forceDispatch(); @Override void forceDispatchBlocking(); @Override void clear(); @Override void submit(TrackMe trackMe); @Override void setDryRunTarget(List<Packet> dryRunTarget); @Override List<Packet> getDryRunTarget();  }
@Test public void testSetConnectionTimeout() throws Exception { mDispatcher.setConnectionTimeOut(100); assertEquals(100, mDispatcher.getConnectionTimeOut()); verify(mPacketSender).setTimeout(100); }