@Test
public void testPropertySelectors() {

    final Data data = new Data();
    data.data = new Data();
    data.data.str = "foobar";
    VariableDefinitions defs = new DataVariableDefinitions();
    VariableContext context = new VariableContext(defs);
    Reference<VariableResolver> reference = context.selectAttribute("data");
    reference = reference.selectAttribute("data");
    reference = reference.selectAttribute("str");
    assertEquals("foobar", reference.resolve(new DataResolver(data)));
}