void () { ParametersList params = new ParametersList(); ParamsGroup group1 = params.addParamsGroup("id1"); ParamsGroup group2 = params.addParamsGroup("id2"); ParamsGroup group12 = params.addParamsGroupAt(1, "id12"); ParamsGroup group01 = params.addParamsGroupAt(0, "id01"); assertEquals(asList(group01, group1, group12, group2), params.getParamsGroups()); }