@Test
public void Should_wrapCaughtExceptions()
        throws Exception {

    ReadValueException readValueException = mock(ReadValueException.class);
    when(contextMock.getValue(any())).thenThrow(readValueException);
    IMessageReceiver receiver = new RetryingToTakeResourceExceptionHandler();
    try {
        receiver.receive(messageProcessorMock);
        fail();
    } catch (MessageReceiveException e) {
        assertSame(readValueException, e.getCause());
    }
}