@Test
public void shouldSendErrorMessageWhenMessageTypeIsNotSupported() throws JMSException {

    // Arrange
    final ObjectMessage message = new ObjectMessageBuilder().withDeviceIdentification(DEFAULT_DEVICE_IDENTIFICATION)
            .withMessageType(DEFAULT_MESSAGE_TYPE)
            .withObject(new GetHealthStatusRequestDto())
            .build();
    when(this.iec60870RequestMessageProcessorMap.getMessageProcessor(message)).thenThrow(JMSException.class);
    // Act
    this.deviceRequestMessageListener.onMessage(message);
    // Assert
    verify(this.deviceResponseMessageSender).send(argThat(new ErrorResponseMessageMatcher()));
}