@Test(expected=BindingException.class)
public void testInvalidReferences() {

    ReferenceContext<Person> context = new ClassReferenceContext<Person>(
            Person.class);
    context.selectAttribute("gender");
}