ChannelGroupTypeBuilder { public ChannelGroupType build() { return new ChannelGroupType(channelGroupTypeUID, label, description, category, channelDefinitions); } private  ChannelGroupTypeBuilder(ChannelGroupTypeUID channelGroupTypeUID, String label); static ChannelGroupTypeBuilder instance(ChannelGroupTypeUID channelGroupTypeUID, String label); ChannelGroupType build(); ChannelGroupTypeBuilder withDescription(String description); ChannelGroupTypeBuilder withCategory(String category); ChannelGroupTypeBuilder withChannelDefinitions(List<ChannelDefinition> channelDefinitions);  }
@Test public void withLabelAndChannelGroupTypeUIDShouldCreateChannelGroupType() { ChannelGroupType channelGroupType = builder.build(); assertEquals(CHANNEL_GROUP_TYPE_UID, channelGroupType.getUID()); assertEquals(LABEL, channelGroupType.getLabel()); }