### Question:
UserGroup { public void setName(String name) { this.name = name; } 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 setName() throws Exception { userGroup2.setName(groupNames[2]); assertEquals(groupNames[2], userGroup2.getName()); }