public class ProviderDefinitionParserTest
extends AbstractDependencyInjectionSpringContextTests {
@Test
public void testParser() throws Exception {
DefaultProvider p = (DefaultProvider) applicationContext.getBean(Provider.class.getName());
Resolver<Target> tresolver = p.getTargetResolver();
assertTrue(tresolver instanceof RegexTargetResolver);
WorkspaceManager wm = p.getWorkspaceManager();
Collection<WorkspaceInfo> workspaces = wm.getWorkspaces(null);
assertEquals(1, workspaces.size());
WorkspaceInfo w = workspaces.iterator().next();
assertNotNull(w);
assertEquals("Foo Workspace", w.getTitle(null));
Collection<CollectionInfo> collections = w.getCollections(null);
assertEquals(2, collections.size());
assertEquals(2, p.getFilters(null).length); //Parameter isn't used
}