### Question:
DropDaemon implements Runnable { void setSleepTime(long sleepTime) { this.sleepTime = sleepTime; } DropDaemon(ChatService chatService,
                      DropMessageRepository dropMessageRepository,
                      ContactRepository contactRepository,
                      IdentityRepository identityRepository,
                      EventSink events
    ); @Override void run();  }### Answer:
@Test public void handlesErrorsTest() throws Exception { dd.setSleepTime(1); send(c, senderIdentity); mockCoreDropConnector.e = new IllegalStateException("network error"); startDaemon(); waitUntil(() -> mockCoreDropConnector.polls > 0); mockCoreDropConnector.e = null; assertAsync(() -> dropMessageRepository.loadConversation(sender, identity), is(not(empty()))); }