@Test
public void testProcessMessageSuccess() throws JMSException, UnknownEntityException {

    when(this.pushNotificationSms.getIpAddress()).thenReturn(IP_ADDRESS);
    doNothing().when(this.eventNotificationMessageService)
            .handleEvent(any(String.class), any(Date.class), any(EventType.class), any(String.class),
                    any(Integer.class));
    final Device device = new Device(DEVICE_IDENTIFICATION);
    when(this.deviceRepository.findByDeviceIdentification(DEVICE_IDENTIFICATION)).thenReturn(device);
    assertThat(device.getLastSuccessfulConnectionTimestamp()).isNull();
    this.pushNotificationSmsMessageProcessor.processMessage(this.message);
    assertThat(device.getLastSuccessfulConnectionTimestamp()).isNotNull();
    verify(this.deviceRepository).save(device);
}