@Test
void testTryToAddFirmwareVersionToHistoryWhenFileIsNotAvailable() {

    // Arrange
    final FirmwareFile firmwareFile = new FirmwareFile.Builder().withFilename("filename")
            .withDescription("description")
            .withPushToNewDevices(false)
            .build();
    when(this.firmwareFileRepository.findByDeviceModel(any(DeviceModel.class)))
            .thenReturn(Collections.singletonList(firmwareFile));
    final List<FirmwareVersion> firmwareVersions = Collections.singletonList(
            new FirmwareVersion(FirmwareModuleType.SECURITY, VERSION_2));
    // Act
    this.firmwareManagementService.tryToAddDeviceFirmwareFile("DVC", firmwareVersions);
    // Assert
    verify(this.deviceFirmwareFileRepository, never()).save(any(DeviceFirmwareFile.class));
}