@Test
public void updateFirmwareShouldThrowExceptionWhenFirmwareFileNotInCache() throws OsgpException {

    // Arrange
    final String firmwareIdentification = "fw";
    when(this.firmwareFileCachingRepository.retrieve(firmwareIdentification)).thenReturn(null);
    // Act
    assertThatExceptionOfType(ProtocolAdapterException.class).isThrownBy(() -> {
        this.firmwareService.updateFirmware(this.dlmsConnectionManagerMock, this.dlmsDeviceMock,
                firmwareIdentification);
        // Assert
        // Nothing to do, as exception will be thrown;
    });
}