Github user syed commented on the pull request: https://github.com/apache/cloudstack/pull/1331#issuecomment-211455173 Loving the discussion here guys! Based on the comments by @jburwell I found http://stackoverflow.com/questions/1827677/how-to-do-a-junit-assert-on-a-message-in-a-logger @rafaelweingartner I would like your opinion on this. I've also added a function which basically writes the `template.properties` file out to the disk. Now I was thinking of mocking the `BufferedWriter` in that function and somehow catch the output and assert it with an expected output but the writer is a variable which is local to that function. How do mock that @rafaelweingartner
--- 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. ---