// Test whiteboard registration of Resource Analyzers, with resource filter
// property.
public void testWhiteboardAnalyzerWithFilter() throws Exception {
Dictionary<String, Object> analyzerProps = new Hashtable<String, Object>();
analyzerProps.put(ResourceAnalyzer.FILTER, "(location=*sion.jar)");
ServiceRegistration reg = context.registerService(ResourceAnalyzer.class.getName(), new WibbleAnalyzer(), analyzerProps);
ServiceReference ref = context.getServiceReference(ResourceIndexer.class.getName());
ResourceIndexer indexer = (ResourceIndexer) context.getService(ref);
StringWriter writer = new StringWriter();