testMbs.registerMBean(mbean, new ObjectName("test:type=ZorkaStats"));
stats.getMethodCallStatistic("A").logCall(4L);
stats.getMethodCallStatistic("B").logCall(1L);
QueryDef query1 = zorka.query("test", "test:type=ZorkaStats", "type").get("stats").listAs("**", "PAR");
Map<String, List<Map<String, String>>> obj1 = zabbixLib._discovery(query1);
assertEquals("query with exact attrs should return data", 2, obj1.get("data").size());
QueryDef query2 = zorka.query("test", "test:type=ZorkaStats").get("stats").listAs("**", "PAR");
Map<String, List<Map<String, String>>> obj2 = zabbixLib._discovery(query2);
assertEquals("query with redundant attrs should return no data", 0, obj2.get("data").size());
}