public void feature(){
FeatureEntity feature = new FeatureEntity("http://test",true);
assertEquals("http://test", feature.getName());
assertEquals(true, feature.isRequired());
assertFalse(feature.hasParams());
ParamEntity param = new ParamEntity("name","value");
List<IParamEntity> params = new ArrayList<IParamEntity>();
params.add(param);
feature = new FeatureEntity("http://test",true,params);
assertTrue(feature.hasParams());
feature.setRequired(false);
assertFalse(feature.isRequired());
feature.setName("http://test2");
assertEquals("http://test2",feature.getName());
ParamEntity param2 = new ParamEntity();
param2.setName("name2");
param2.setValue("value2");
params.add(param2);
assertEquals("name2", param2.getName());
assertEquals("value2", param2.getValue());
feature.setParams(params);
assertEquals(2,feature.getParams().size());
}