@Test
public void testGetRenderingParameters() {

    IGenerator<IChemObject> generator = new IGenerator<IChemObject>() {
        IGeneratorParameter<Boolean> someParam = new SomeParam();
        @Override
        public List<IGeneratorParameter<?>> getParameters() {
            return new ArrayList<IGeneratorParameter<?>>() {
                {
                    add(someParam);
                }
            };
        }
        @Override
        public IRenderingElement generate(IChemObject object, RendererModel model) {
            // TODO Auto-generated method stub
            return null;
        }
    };
    RendererModel model = new RendererModel();
    int nDefaultParams = model.getRenderingParameters().size();
    model.registerParameters(generator);
    List<IGeneratorParameter<?>> params = model.getRenderingParameters();
    Assert.assertNotNull(params);
    Assert.assertEquals(nDefaultParams + 1, params.size()); // the registered one + defaults
    List<Class<?>> paramClasses = new ArrayList<Class<?>>();
    for (IGeneratorParameter<?> param : params)
        paramClasses.add(param.getClass());
    assertThat(paramClasses, hasItem(SomeParam.class));
}