public static AbstractDataStoreFactory createNullTestFactory() throws Exception {
final AbstractDataStoreFactory factory = mock(AbstractDataStoreFactory.class);
when(factory.createDataStore(anyMapOf(String.class, Serializable.class))).thenReturn(null);
when(factory.canProcess(anyMapOf(String.class, Serializable.class))).thenReturn(true);
return factory;
}
public static AbstractDataStoreFactory createFactoryWithGetNamesException() throws Exception {