EvalData implements MeterEvalOperation<FROM> { boolean hasSameTag(String tagKey, String tagValue) { return Objects.equals(tagValue, labels.get(tagKey)); }    }
@Test public void testHasSameTag() { final TestEvalData evalData = new TestEvalData(); evalData.labels = new HashMap<>(); evalData.labels.put("k1", "v1"); evalData.labels.put("k2", "v2"); Assert.assertTrue(evalData.hasSameTag("k1", "v1")); Assert.assertFalse(evalData.hasSameTag("k1", "v2")); }