### Question:
UserGroup { public void setGroupId(int groupId) { this.groupId = groupId; } UserGroup(int groupId, String name); int getGroupId(); void setGroupId(int groupId); String getName(); void setName(String name); boolean isSharingLocation(); void setSharingLocation(boolean sharingLocation); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void setGroupId() throws Exception { userGroup2.setGroupId(ids[3]); assertEquals(ids[3], userGroup2.getGroupId()); }