XD-855 Change metrics assertions in IT tests to use smart Thread.sleep

* Use Hamcrest matchers for metrics tests
* Removed deprecated classes and usage of those

Jira: https://jira.springsource.org/browse/XD-855