### Question:
PropertyPath { public int size() { return segments.size(); } PropertyPath( String path );  PropertyPath( String[] segments );  PropertyPath(); protected  PropertyPath( PropertyPath parent, String shortName, Property uri ); protected  PropertyPath( List<String> segments, List<Property> properties ); @Override String toString(); String toHTMLString(); int size(); boolean beginsWith( Property p, ShortNameRenderer snr ); PropertyPath append( String shortName, String uri, ShortNameRenderer snr ); Property terminal(); PropertyPath shift(); boolean isEmpty(); static final Property STAR; }### Answer:
@Test public void testSize() { assertEquals( 1, new PropertyPath( "foo" ).size() ); assertEquals( 3, new PropertyPath( "foo.bar.fubar" ).size() ); }