@Test
@SuppressWarnings("unchecked")
public void resolve_app_var_complex_with_var_in_leaf() throws Exception {

    Map<String, Object> complex = resolver.resolve("complex_with_var_in_leaf", Map.class);
    assertThat(complex.get("complex")).isEqualTo(ImmutableMap.builder().put("subfield", "text").build());
}