### Question:
FmsGroupConverter { public FmsGroup nameToGroup(String name) { checkArgument(!Strings.isNullOrEmpty(name)); FmsGroup fmsGroup = new FmsGroup(); fmsGroup.withName(name); return fmsGroup; }  FmsGroup umsGroupToGroup(UserManagementProto.Group umsGroup); FmsGroup nameToGroup(String name);  }### Answer:
@Test public void testNameToGroup() { String groupName = "foobar"; FmsGroup fmsGroup = underTest.nameToGroup(groupName); assertEquals(groupName, fmsGroup.getName()); }
@Test public void testNameToGroupMissingGroupName() { assertThrows(IllegalArgumentException.class, () -> underTest.nameToGroup(null)); }