public void testIsAvailable() throws NoSuchAuthorityCodeException, FactoryException { GridFormatFinder.scanForPlugins(); Iterator<GridFormatFactorySpi> list = GridFormatFinder.getAvailableFormats().iterator(); boolean found = false; GridFormatFactorySpi fac = null; while (list.hasNext()) { fac = (GridFormatFactorySpi) list.next(); if (fac instanceof ArcGridFormatFactory) { found = true; break; } } assertTrue("ArcGridFormatFactory not registered", found); assertTrue("ArcGridFormatFactory not available", fac.isAvailable()); assertNotNull(new ArcGridFormatFactory().createFormat()); }