String providerID = "net.sf.iqser.plugin.facebook";
protected void setUp() throws Exception {
PropertyConfigurator.configure("src/test/resources/log4j.properties");
FacebookContentProvider fbcp = new FacebookContentProvider();
mockFbClient = EasyMock.createMock(IFacebookRESTClient.class);
fbcp.setId(providerID);
// TODO set config params
Properties initParams = new Properties();
// initParams.put("KEY-ATTRIBUTES",[attr3][new_attr2]);
// initParams.put("ATTRIBUTE-MAPPINGS",[attr1=new_attr1][attr2=new_attr2]);
// initParams.put("CONTENT-TYPE-MAPPINGS",[Post=MyPost][User=People]);
// initParams.put("TYPE_FILTER",[Post][User]);
fbcp.setInitParams(initParams);
fbcp.init();
Configuration.configure(new File("iqser-config.xml"));
TestServiceLocator sl = (TestServiceLocator) Configuration
.getConfiguration().getServiceLocator();