@Test
public void shouldProcessMessageWhenMessageTypeIsSupported() throws JMSException {

    // Arrange
    final ObjectMessage message = new ObjectMessageBuilder().withDeviceIdentification(DEFAULT_DEVICE_IDENTIFICATION)
            .withMessageType(DEFAULT_MESSAGE_TYPE)
            .withObject(new GetHealthStatusRequestDto())
            .build();
    final MessageProcessor messageProcessor = mock(GetHealthStatusRequestMessageProcessor.class);
    when(this.iec60870RequestMessageProcessorMap.getMessageProcessor(message)).thenReturn(messageProcessor);
    // Act
    this.deviceRequestMessageListener.onMessage(message);
    // Assert
    verify(messageProcessor).processMessage(message);
}