@Test(expected = ObjectQueryException.class)
public void testWrongProxyPrjection() throws Exception {
GenericSelectQuery<Person, Object> query = new GenericSelectQuery<Person, Object>(Person.class);
ProxyFactory pf = new ProxyFactory();
Object o = pf.create(null, null, new MethodHandler() {
public Object invoke(Object self, Method thisMethod, Method proceed, Object[] args) throws Throwable {
return null;
}
});