Implement reply by client and add test case