@Test
public void ResultListener_nonNull_exception() {

    PromiseImpl<Object> promise = new PromiseImpl<>(mResult, mCleaner);
    promise.then(mActorThread, mListener);
    Mockito.verify(mActorThread).bind(Mockito.same(ResultListener.class), mCaptor.capture());
    ResultListener listener = mCaptor.getValue();
    Assert.assertTrue(listener instanceof ExceptionTemplateProvider);
    Assert.assertNotNull(((ExceptionTemplateProvider) listener).exception());
}