@Test(timeout = 2000)
public void get_deliverResult_nullResult() throws Exception {

    final CountDownLatch latch = new CountDownLatch(1);
    PromiseProxy promise = new PromiseProxy(mSender, mMessage);
    ResultDeliveryThread thread = new ResultDeliveryThread(promise, latch, new Object());
    Mockito.doAnswer(thread).when(mSender).deliver(Mockito.<Message>any());
    thread.start();
    latch.await();
    // Allow thread to fall a sleep
    Thread.sleep(200);
    promise.onResult(null);
    thread.join();
    Assert.assertNull(thread.delivered());
}