BeanPointerEx extends BeanPointer { @Override public PropertyPointer getPropertyPointer() { return new BeanPropertyPointerEx(this, beanInfo); } BeanPointerEx(QName name, Object bean, JXPathBeanInfo beanInfo,
            Locale locale);  BeanPointerEx(NodePointer parent, QName name, Object bean,
            JXPathBeanInfo beanInfo); @Override PropertyPointer getPropertyPointer();  }
@Test public void testGetPropertyPointer01() throws Exception { QName qName = new QName("name"); Object bean = new Object(); JXPathBeanInfo beanInfo = new JXPathBasicBeanInfo(bean.getClass()); Locale locale = new Locale("ja"); BeanPointerEx beanPointer = new BeanPointerEx(qName, bean, beanInfo, locale); PropertyPointer result = beanPointer.getPropertyPointer(); assertSame(BeanPropertyPointerEx.class, result.getClass()); assertSame(beanPointer, result.getParent()); assertSame(beanInfo, ReflectionTestUtils.getField(result, "beanInfo")); }