ScannerFactory { public List<DrbCortexItemClass> getScannerSupport () { if (itemClasses == null) { itemClasses = getDefaultCortexSupport (); if ((itemClasses!=null) && LOGGER.isDebugEnabled()) { LOGGER.debug("Supported classes:"); for (String cl:itemClasses) { LOGGER.debug(" - " + cl); } } } if (itemClasses == null) throw new UnsupportedOperationException ( "Empty item list: no scanner support."); List<DrbCortexItemClass> supported = new ArrayList<DrbCortexItemClass> (); if (itemClasses != null) { for (String s : itemClasses) { try { supported.add (DrbCortexItemClass.getCortexItemClassByName (s)); } catch (Exception e) { LOGGER.error ("Cannot add support for class " + s); } } } return supported; }  List<DrbCortexItemClass> getScannerSupport(); static synchronized String[] getDefaultCortexSupport(); Scanner getScanner(String url); Scanner getScanner(String url, String username, String password,
         String pattern); Scanner getUploadScanner(String url, final String username,
      final String password, String pattern); void processScan(final Long scan_id); boolean stopScan(final Long scan_id); static final SimpleDateFormat SDF; }
@Test public void getScannerSupport () { String[] supported_classes = ScannerFactory.getDefaultCortexSupport (); Assert.assertTrue (supported_classes.length>1, "Missing supports"); }