### Question:
User { public void setFriend(boolean friend) { isFriend = friend; } User(int userId,
                String username,
                boolean isFriend,
                boolean isBlocked,
                boolean isRequesting,
                boolean requestPending,
                Location location); int getUserId(); void setUserId(int userId); String getUsername(); void setUsername(String username); boolean isFriend(); void setFriend(boolean friend); boolean isBlocked(); void setBlocked(boolean blocked); boolean isRequesting(); void setRequesting(boolean requesting); boolean isRequestPending(); void setRequestPending(boolean requestPending); Location getLocation(); void setLocation(Location location); @Override boolean equals(Object o); @Override int hashCode(); static User getPlaceholderAndScheduleQuery(int userID,
                                                      UserDao userDao); static User getPlaceholderAndScheduleQuery(int userID,
                                                      UserRepository
                                                              userRepository); static User getPlaceholderAndScheduleQuery(
            int userID, UserRepository userRepository,
            @Nullable UserManipulationFunction additionalManipulation);  }### Answer:
@Test public void setFriend() throws Exception { user2.setFriend(true); assertTrue(user2.isFriend()); }