### Question:
ContactRequestAnswerUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.userRepository.setIsPending(creator, false); repositorySet.userRepository.setIsFriend(creator, answer); } ContactRequestAnswerUpdate(@JsonProperty("time-created") Date timeCreated,
                                      @JsonProperty("creator") int creator,
                                      @JsonProperty("answer") Boolean answer); @Override void applyUpdate(RepositorySet repositorySet);  }### Answer:
@Test public void applyUpdate() throws Exception { ContactRequestAnswerUpdate update = new ContactRequestAnswerUpdate(date, creator1, true); update.applyUpdate(mockRepos); verify(mockUserRepository).setIsPending(creator1, false); verify(mockUserRepository).setIsFriend(creator1, true); }