@Test
public void testReadJsonObjectFromConfig() throws Exception {

    ExpressionEvaluator eval = mock(ExpressionEvaluator.class);
    when(eval.evaluate(anyString())).thenAnswer(call -> call.getArgument(0, String.class));
    assertEquals("expect empty json object for empty value", JsonValue.EMPTY_JSON_OBJECT,
            converter().readJsonObjectFromConfig(xml("emptyFoo.xml"), eval));
    assertEquals("expect json object for value", key("foo", "one").get(),
            converter().readJsonObjectFromConfig(xml("foosFoo.xml"), eval));
    assertEquals("expect json object for value", key("bar", "one").get(),
            converter().readJsonObjectFromConfig(xml("foosBar.xml"), eval));
}