### Question:
BeanUtil { public static List<String> getPropertyPaths(Class<?> clazz) { return addClassPropertyPaths(new ArrayList<String>(), "", clazz); } private  BeanUtil(); static List<String> getPropertyPaths(Class<?> clazz);  }### Answer:
@Test public void testGetPropertyPaths() throws Exception { List<String> propertyPaths = BeanUtil.getPropertyPaths(Person.class); assertEquals("name", propertyPaths.get(0)); }
@Test public void testGetNestedPropertyPaths() throws Exception { List<String> propertyPaths = BeanUtil.getPropertyPaths(Review.class); assertEquals("reviewBody", propertyPaths.get(0)); assertEquals("reviewRating.ratingValue", propertyPaths.get(1)); }