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