SimpleHibernatePropertyResolver extends SimplePropertyResolver implements HibernatePropertyResolver { @Override public String resolveYField(String propertyName, Class<?> entityClass) { return resolveAnnotatedSubFieldName(propertyName, entityClass, YField.class, yFieldExtractor); }  @Override String resolveXField(String propertyName, Class<?> entityClass); @Override String resolveYField(String propertyName, Class<?> entityClass);  }
@Test public void testYField_LatLon() { String resolved = resolver.resolveYField("latlon", WithLatLon.class); assertEquals("latlon.longitude", resolved); }
@Test public void testYField_LatLonCustom() { String resolved = resolver.resolveYField("latlon", WithLatLonCustom.class); assertEquals("latlon.lon", resolved); }
@Test(expected = IllegalArgumentException.class) public void testYField_LatLonSub_IllegalArgumentException() { resolver.resolveYField("latlon", WithLatLonSub.class); }