@Test
public void testQuerySystemWithInheritance(){
Reference ref = new Reference();
ref.setValue("house");
Son son = new Son();
son.setData("data from son");
son.setSonName("child");
son.setDescription("parent description");
son.setReference(ref);
boolean value = admin.save(son);
Assert.assertTrue(value);
Son s = new Son();
admin.obtain(s, "reference.value = 'house'");
Assert.assertEquals(s.getReference().getValue(), "house");
Assert.assertEquals(s.getDescription(), "parent description");
}