@Test
@DataSet("XiaoChun.DataSet.xls")
public void addTopic() throws Exception {

	Topic topic = XlsDataSetBeanFactory.createBean(ForumServiceTest.class,
			"XiaoChun.DataSet.xls", "t_topic", Topic.class);
	User user = XlsDataSetBeanFactory.createBean(ForumServiceTest.class,
			"XiaoChun.DataSet.xls", "t_user", User.class);
	MainPost post = XlsDataSetBeanFactory.createBean(ForumServiceTest.class,
			"XiaoChun.DataSet.xls", "t_post", MainPost.class);
	topic.setUser(user);
	topic.setMainPost(post);
	forumService.addTopic(topic);
	Board boardDb = forumService.getBoardById(1);
	User userDb = userService.getUserByUserName("tom");
	assertEquals(boardDb.getTopicNum(), 1);
	assertEquals(userDb.getCredit(), 110);
	assertEquals(topic.getTopicId()>0, true);
}