### Question:
TppUsersController implements TppUsersRestApi { @Override public ResponseEntity<CustomPageImpl<UserTO>> getAllUsers(String queryParam, int page, int size) { CustomPageImpl<UserTO> userPage = Optional.ofNullable(userMgmtStaffRestClient.getBranchUsersByRoles(singletonList(CUSTOMER), queryParam, null, page, size).getBody()) .orElse(new CustomPageImpl<>()); return ResponseEntity.ok(userPage); }  @Override ResponseEntity<UserTO> createUser(User user); @Override ResponseEntity<CustomPageImpl<UserTO>> getAllUsers(String queryParam, int page, int size); @Override ResponseEntity<Void> updateUser(User user); @Override ResponseEntity<UserTO> getUser(String userId); @Override ResponseEntity<UserTO> getSelf(); @Override ResponseEntity<Boolean> changeStatus(String userId);  }### Answer:
@Test void getAllUsers() { when(userMgmtStaffRestClient.getBranchUsersByRoles(Collections.singletonList(USER_ROLE), LOGIN, null, 0, 25)).thenReturn(ResponseEntity.ok(getCustomPageImplUserTO())); ResponseEntity<CustomPageImpl<UserTO>> user = tppUsersController.getAllUsers(LOGIN, 0, 25); assertTrue(user.getStatusCode().is2xxSuccessful()); assertEquals(user.getBody(), getCustomPageImplUserTO()); }