@Test
public void testToMap_Sorted() {

  Map<String, String> map = BeanUtils.beanMap(new MyBean(), true);
  Assert.assertEquals(Arrays.asList("bar", "foo", "list"), new ArrayList<String>(map.keySet()));
}