### Question:
FixFixtures { void addGroupToCdr(String groupType, Cdr message) { assertNotNull("No message found to add group " + groupType, message); CdrItem groupItem = new CdrItem(CdrItem.CdrItemType.CDR_ARRAY); groupItem.setCdrs(new ArrayList<>()); message.setItem(groupType, groupItem); } FixFixtures(EtiqetHandlers handlers); @Then("create a repeating group \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroup(String groupType, String messageName); @Then("create a repeating group \"([^\"]*)\" with \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroupWithFields(String groupType, String params, String messageName); @Then("create a repeating group \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroupInGroup(String groupType, String existingGroup, String messageName); @Then("create a repeating group \"([^\"]*)\" with \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroupWithFieldsInGroup(String groupType, String params, String existingGroup, String messageName); @Then("add fields \"([^\"]*)\" to \"([^\"]*)\" group in message \"([^\"]*)\"") void addFieldsToRepeatingGroup(String params, String groupType, String messageName);  }### Answer:
@Test public void testAddGroupToCdr_NonNullMessage() { Cdr message = new Cdr("Test"); assertFalse(message.containsKey("Parties")); fixtures.addGroupToCdr("Parties", message); assertTrue(message.containsKey("Parties")); CdrItem parties = message.getItem("Parties"); assertNotNull(parties); assertEquals(CdrItem.CdrItemType.CDR_ARRAY, parties.getType()); assertEquals(new ArrayList<Cdr>(), parties.getCdrs()); }