@Test
public void testToMap(){

	TestBean test = new TestBean();
	test.setUserName("testUserName");
	test.setBirthday(DateUtils.parse("2017-01-05 11:11:11"));
	test.getAttrs().put("aa", "bb");
	TestBean test2 = new TestBean();
	test2.setUserName("testUserName2");
	test.getAttrs().put("cc", test2);
	test.setName("testRealName");
	Map<String, Object> map = SpringUtils.toFlatMap(test);
	System.out.println("map:"+map);
	assertThat(map.size()).isEqualTo(5);
	assertThat(map.get("birthday")).isEqualTo("2017-01-05");
	assertThat(map.get("realName")).isEqualTo("testRealName");
}