### Question:
UserGroup { public void setSharingLocation(boolean sharingLocation) { isSharingLocation = sharingLocation; } 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 setSharingLocation() throws Exception { userGroup2.setSharingLocation(true); assertTrue(userGroup2.isSharingLocation()); }