Hello,
I'd like to propose the addition of the "assertj" lib in test scope for hawkular-metrics (and/or other modules).
If you don't know it, assertj is basically a "fluent assertion framework". You write assertions like :
assertThat(result).extracting(DataPoint::getTimestamp).containsExactly(0L, 1L, 5L, 7L, 10L);
It has a very rich collection of assertions, I find it particularly powerful when working on collections, whether they are sorted or not, whether they have nested objects or not.
Also, the fact that it's "fluent" helps a lot when you write a test, because your IDE auto-completion will help you a lot to find what's the assertion you're looking for - something that is not so easy with hamcrest.
I see it as a kind of virtuous cycle: tests are easier to write, easier to read, so you write more tests / better tests.
Would you be ok to give it a try?
Joel