@Test(expected = CommandUnmarchelingException.class)
public void testRetreiveWhenJAcksonFireException() throws IOException {

    // Setup
    final String eventId = "1234";
    final AbstractCommand command = mock(AbstractCommand.class);
    BubbleMessage message = mock(BubbleMessage.class);
    when(command.getPayload()).thenReturn("");
    when(mockBubbleCache.getBubble(eventId)).thenReturn(Optional.of(message));
    when(mockCommandRepository.findOne(anyString())).thenReturn(command);
    when(mockMapper.readValue("", TestData.class)).thenThrow(JsonProcessingException.class);
    // Run the test
    final Optional<TestData> result = commandOrchestratorImplUnderTest.retreive(eventId, TestData.class);
}