@Test(dataProvider = "getMissingValueTestData") public void testMissingBehavior(VariantContext vc, JexlMissingValueTreatment missingValueTreatment, boolean expected, Class<? extends Exception> expectedException){ final JEXLMap jexlMap = new JEXLMap(Collections.singletonList(missingValueExpression), vc, null, missingValueTreatment); if(expectedException == null) { Assert.assertEquals((boolean) jexlMap.get(missingValueExpression), expected); } else { Assert.assertThrows(expectedException, () -> jexlMap.get(missingValueExpression)); } }