@Test
public void test() throws RuntimeConfigException, IOException {

	Map<String, Object> params = new HashMap<String, Object>();
	params.put(GeoToolsLayerBeanFactory.BEAN_NAME, "testLayer");
	params.put(GeoToolsLayerBeanFactory.CLASS_NAME, GeoToolsLayer.class);
	params.put(GeoToolsLayerBeanFactory.LAYER_INFO, countriesInfo);
	params.put(GeoToolsLayerBeanFactory.STYLE_INFO, countriesInfo.getNamedStyleInfos());
	List<BeanDefinitionHolder> beans = beanFactory.createBeans(params);
	System.out.println(new BeanDefinitionWriterServiceImpl().toString(beans));
	Assert.assertEquals(2, beans.size());
}