@Test
public void testUnknownDeviceAuthorization() {

    when(this.deviceAuthorizationRepository.findByDeviceAndFunctionGroup(this.device, DeviceFunctionGroup.OWNER))
            .thenReturn(null);
    assertThatExceptionOfType(JMSException.class).isThrownBy(() -> {
        this.pushNotificationAlarmMessageProcessor.processMessage(this.message);
    });
}