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

    final Object result = new Object();
    final CountDownLatch latch = new CountDownLatch(1);
    PromiseProxy promise = new PromiseProxy(mSender, mMessage);
    ResultDeliveryThread thread = new ResultDeliveryThread(promise, latch, null);
    Mockito.doAnswer(thread).when(mSender).deliver(Mockito.<Message>any());
    thread.start();
    latch.await();
    promise.onResult(result);
    thread.join();
    Assert.assertSame(result, thread.delivered());
}