final ObjectName objectName = new ObjectName(mbeanName);
if(jmxServer.queryNames(objectName, null).size() == 0) {
fail("MBean not found: " + objectName);
}
final Object value = jmxServer.getAttribute(objectName, attributeName);
final ResultLog resultLog = new ResultLog();
new SimpleConstraintChecker().check(value, constraint, resultLog);
assertEquals("Expecting result " + expected + "(" + resultLog + ")", expected, resultLog.getAggregateStatus().equals(Result.Status.OK));
}