void () { ParametersList params = new ParametersList(); ParamsGroup group1 = params.addParamsGroup("id1"); assertEquals("id1", group1.getId()); assertEquals(1, params.getParamsGroupsCount()); assertEquals(asList(group1), params.getParamsGroups()); ParamsGroup group2 = params.addParamsGroup("id2"); assertEquals("id2", group2.getId()); assertEquals(2, params.getParamsGroupsCount()); assertEquals(asList(group1, group2), params.getParamsGroups()); }