### Question:
NessusAdapterV1 extends AbstractAdapter<NessusAdapterContext, NessusAdapterConfig> implements NessusAdapter { String createNewScanJSON(NessusAdapterContext context) { NessusAdapterConfig config = context.getConfig(); return createNewScanJSONBuilder(). uuid(context.getNessusPolicyUID()). name(config.getTraceID()+"_"+config.getTargetType()). description("SecHub scan "+config.getTraceID()+" for target type "+config.getTargetType()). targetsURIs(config.getTargetURIs()). targetIPs(config.getTargetIPs()).build(); }  @Override String execute(NessusAdapterConfig config,AdapterRuntimeContext runtimeContext); @Override int getAdapterVersion();  }### Answer:
@Test public void createScanJSON_creates_validJson() throws Exception { String json = adapterToTest.createNewScanJSON(context); JSONObject jsonObject = new JSONObject(json); assertNotNull(jsonObject); }