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

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