Github user nitin-maharana commented on the pull request: https://github.com/apache/cloudstack/pull/775#issuecomment-143041644 Hi. Here we have to access the database to see the behaviour of replace function. Because the replace function is evaluated in database server side. But in unit test we cannot access the database. We know the replace function will work properly if the parameters are sent correctly. So I have tested whether the parameters are sent correctly to the replace function while executing. I have done in two scenarios. Before the code change and after this commit. I have shared two screenshots of my test. 1. Behaviour before this commit  2. Behaviour after this commit 
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---