### Question:
UserController { @GetMapping("/exists/email/{email}") public boolean existsEmail(@PathVariable String email) throws CustomException { return userRepository.existsByEmail(email); }  @GetMapping("/users") Iterable<User> getAllUsers(); @GetMapping("/exists/username/{username}") boolean existsUsername(@PathVariable String username); @GetMapping("/exists/email/{email}") boolean existsEmail(@PathVariable String email); @PostMapping("/signup") User insertUser(@RequestBody User newUser); @GetMapping("/profile/{username}") Profile getUserProfile(@PathVariable String username); @PutMapping("/profile/{username}") Profile updateUserProfile(
            @PathVariable String username, @RequestBody Profile updatedProfile); @PostMapping("/password/{userId}/matches") boolean passwordMatches(
            @PathVariable Integer userId, @RequestBody AuthenticationRequest plainPassword); @PutMapping("/password/{userId}/update") String passwordUpdate(
            @PathVariable Integer userId, @RequestBody AuthenticationRequest plainPassword); @DeleteMapping("/users/{userId}") void deleteUserAccount(@PathVariable Integer userId);  }### Answer:
@Test @Order(2) public void existsEmail() throws Exception { String url = "/exists/email/abcd@ef"; mvc.perform(MockMvcRequestBuilders.get(url).accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(content().string("true")); }