@Test
public void testReadJsonArrayFromConfig() throws Exception {

    ExpressionEvaluator eval = mock(ExpressionEvaluator.class);
    when(eval.evaluate(anyString())).thenAnswer(call -> call.getArgument(0, String.class));
    assertEquals("expect empty json array for empty value", JsonValue.EMPTY_JSON_ARRAY,
            converter().readJsonArrayFromConfig(xml("emptyFoo.xml"), eval));
    assertEquals("expect json array for value", arr("one").get(),
            converter().readJsonArrayFromConfig(xml("foosFoo.xml"), eval));
    assertEquals("expect json array for value", arr("one").get(),
            converter().readJsonArrayFromConfig(xml("foosBar.xml"), eval));
}