Unfortunately JUnit requires argument type AssertThat(T, Matcher <? super T1>) where as to keep our option open, I set the return values from JMX to be Object (so that it can be String, Int, Double, etc) and that violates Java rules about type.