WFSDataStoreFactory implements DataStoreFactorySpi { @Override public DataStore createNewDataStore(final Map<String, Serializable> params) throws IOException { throw new UnsupportedOperationException("Operation not applicable to a WFS service"); }  @Override WFSDataStore createDataStore(final Map<String, Serializable> params); @Override DataStore createNewDataStore(final Map<String, Serializable> params); @Override String getDisplayName(); @Override String getDescription(); @Override Param[] getParametersInfo(); @Override boolean canProcess(@SuppressWarnings("rawtypes") final Map params); static URL createGetCapabilitiesRequest(URL host, Version version); static URL createGetCapabilitiesRequest(final URL host); boolean isAvailable(); Map<java.awt.RenderingHints.Key, ?> getImplementationHints(); static final String AXIS_ORDER_EAST_NORTH; static final String AXIS_ORDER_NORTH_EAST; static final String AXIS_ORDER_COMPLIANT; static final WFSFactoryParam<URL> URL; static final WFSFactoryParam<Boolean> PROTOCOL; static final WFSFactoryParam<String> USERNAME; static final WFSFactoryParam<String> PASSWORD; static final WFSFactoryParam<String> ENCODING; static final WFSFactoryParam<Integer> TIMEOUT; static final WFSFactoryParam<Integer> BUFFER_SIZE; static final WFSFactoryParam<Boolean> TRY_GZIP; static final WFSFactoryParam<Boolean> LENIENT; static final WFSFactoryParam<Integer> MAXFEATURES; static final WFSFactoryParam<Integer> FILTER_COMPLIANCE; static final WFSFactoryParam<String> WFS_STRATEGY; static final WFSFactoryParam<String> NAMESPACE; static final WFSFactoryParam<Boolean> USEDEFAULTSRS; static final WFSFactoryParam<String> AXIS_ORDER; static final WFSFactoryParam<String> AXIS_ORDER_FILTER; static final WFSFactoryParam<String> OUTPUTFORMAT; }
@Test public void testCreateNewDataStore() throws IOException { try { dsf.createNewDataStore(params); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException e) { assertTrue(true); } }