### Question:
SecHubConfiguration implements JSONable<SecHubConfiguration> { public Optional<SecHubInfrastructureScanConfiguration> getInfraScan() { return infraScan; }  static SecHubConfiguration createFromJSON(String json); void setProjectId(String projectId); String getProjectId(); void setApiVersion(String apiVersion); String getApiVersion(); void setWebScan(SecHubWebScanConfiguration webScan); Optional<SecHubWebScanConfiguration> getWebScan(); void setCodeScan(SecHubCodeScanConfiguration codeScan); Optional<SecHubCodeScanConfiguration> getCodeScan(); void setInfraScan(SecHubInfrastructureScanConfiguration infraStructureScan); Optional<SecHubInfrastructureScanConfiguration> getInfraScan(); @Override Class<SecHubConfiguration> getJSONTargetClass(); static final String PROPERTY_PROJECT_ID; static final String PROPERTY_API_VERSION; static final String PROPERTY_WEB_SCAN; static final String PROPERTY_INFRA_SCAN; static final String PROPERTY_CODE_SCAN; }### Answer:
@Test public void sechub_config2_json_file_from_json_has_infraconfig_with_url() throws Exception { String json = SharedKernelTestFileSupport.getTestfileSupport().loadTestFile("sechub_config2.json"); SecHubConfiguration result = SECHUB_CONFIG.fromJSON(json); assertTrue("infrascan config must be present", result.getInfraScan().isPresent()); assertTrue(result.getInfraScan().get().getUris().contains(new URI("https: }
@Test public void sechub_config2_json_file_from_json_has_infraconfig_with_ips() throws Exception { String json = SharedKernelTestFileSupport.getTestfileSupport().loadTestFile("sechub_config2.json"); SecHubConfiguration result = SECHUB_CONFIG.fromJSON(json); assertTrue("infrascan config must be present", result.getInfraScan().isPresent()); List<InetAddress> ips = result.getInfraScan().get().getIps(); assertTrue(ips.contains(InetAddress.getByName("192.168.1.1"))); assertTrue(ips.contains(InetAddress.getByName("58.112.44.32"))); }