@Test(expected = DecoderException.class)
public void testCommandMapperWhenEsception() throws JsonProcessingException {

    // Setup
    final BaseTransactionCommand baseTransactionCommand = mock(BaseTransactionCommand.class);
    final BubbleMessage bubbleMessage = mock(BubbleMessage.class);
    final JsonProcessingException exception = mock(JsonProcessingException.class);
    when(mockBubbleCache.getBubble(baseTransactionCommand.getId())).thenReturn(Optional.of(bubbleMessage));
    when(mockMapper.writeValueAsString(baseTransactionCommand.getPayload())).thenThrow(exception);
    // Run the test
    final OutboundCommand result = commandOrchestratorImplUnderTest.commandMapper(baseTransactionCommand);
}