### Question:
NessusAdapterV1 extends AbstractAdapter<NessusAdapterContext, NessusAdapterConfig> implements NessusAdapter { String createScanExportDownloadApiURL(NessusAdapterContext context) { String part = MessageFormat.format(MSG_APICALL_EXPORT_SCAN_DOWNLOAD, Long.toString(context.getNessusScanId()), context.getExportFileId()); return createAPIURL(part, context); }  @Override String execute(NessusAdapterConfig config,AdapterRuntimeContext runtimeContext); @Override int getAdapterVersion();  }### Answer:
@Test public void when_context_has_scanid_123456_fid_789_the_createScanExportDownloadApiURL_returns_host_and_123456_export_789_status() { when(context.getNessusScanId()).thenReturn(123456L); when(config.getProductBaseURL()).thenReturn("https: when(context.getExportFileId()).thenReturn("789"); String result = adapterToTest.createScanExportDownloadApiURL(context); assertEquals("https: }