@Test
void checkSsldPendingFirmwareUpdateReturnsFalseIfThereAreNoPendingUpdates() {

    final String organisationIdentification = "test-org";
    final String deviceIdentification = "device-identification";
    final String correlationUid = "correlation-uid-no-pending-updates";
    final CorrelationIds ids = new CorrelationIds(organisationIdentification, deviceIdentification, correlationUid);
    final List<FirmwareVersion> firmwareVersions = Collections
            .singletonList(new FirmwareVersion(FirmwareModuleType.FUNCTIONAL, VERSION_3));
    when(this.ssldPendingFirmwareUpdateRepository.findByDeviceIdentification(deviceIdentification))
            .thenReturn(Collections.emptyList());
    final boolean hasPendingFirmwareUpdate = this.firmwareManagementService.checkSsldPendingFirmwareUpdate(ids,
            firmwareVersions);
    assertThat(hasPendingFirmwareUpdate).isFalse();
    verify(this.ssldPendingFirmwareUpdateRepository).findByDeviceIdentification(deviceIdentification);
    verifyNoMoreInteractions(this.ssldPendingFirmwareUpdateRepository);
}