    @Test
    public void updateFirmwareShouldNotCallExecutorWhenFirmwareFileNotInCache() throws OsgpException {

        // Arrange
        final String firmwareIdentification = "fw";
        when(this.firmwareFileCachingRepository.retrieve(firmwareIdentification)).thenReturn(null);

        // Act
        try {
            this.firmwareService.updateFirmware(this.dlmsConnectionHolderMock, this.dlmsDeviceMock,
                    firmwareIdentification);
        } catch (final ProtocolAdapterException e) {
            e.printStackTrace();
        }

        // Assert
        verify(this.updateFirmwareCommandExecutor, never()).execute(this.dlmsConnectionHolderMock, this.dlmsDeviceMock,
                firmwareIdentification);
    }