FirmwareService { public List<FirmwareVersionDto> getFirmwareVersions(final DlmsConnectionHolder conn, final DlmsDevice device) throws ProtocolAdapterException { return this.getFirmwareVersionsCommandExecutor.execute(conn, device, null); }  List<FirmwareVersionDto> getFirmwareVersions(final DlmsConnectionHolder conn, final DlmsDevice device); UpdateFirmwareResponseDto updateFirmware(final DlmsConnectionHolder conn, final DlmsDevice device,
            final String firmwareIdentification); UpdateFirmwareResponseDto updateFirmware(final DlmsConnectionHolder conn, final DlmsDevice device,
            final FirmwareFileDto firmwareFileDto); boolean isFirmwareFileAvailable(final String firmwareIdentification);  }
@Test public void getFirmwareVersionsShouldCallExecutor() throws ProtocolAdapterException { this.firmwareService.getFirmwareVersions(this.dlmsConnectionHolderMock, this.dlmsDeviceMock); verify(this.getFirmwareVersionsCommandExecutor, times(1)).execute(this.dlmsConnectionHolderMock, this.dlmsDeviceMock, null); }