@Test
public void processMessageShouldUpdateFirmwareWhenFirmwareFileAvailable() throws JMSException, OsgpException {

    // Arrange
    final String firmwareIdentification = "available";
    final ObjectMessage message = new ObjectMessageBuilder().withObject(firmwareIdentification).build();
    when(this.firmwareService.isFirmwareFileAvailable(firmwareIdentification)).thenReturn(true);
    // Act
    this.processor.processMessage(message);
    // Assert
    verify(this.configurationService, times(1)).updateFirmware(null, this.device, firmwareIdentification);
}