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

	Post post = XlsDataSetBeanFactory.createBean(ForumServiceTest.class,
			"XiaoChun.DataSet.xls", "t_post", Post.class);
	User user = XlsDataSetBeanFactory.createBean(ForumServiceTest.class,
			"XiaoChun.DataSet.xls", "t_user", User.class);
	Topic topic = new Topic();
	topic.setTopicId(1);
	post.setUser(user);
	post.setTopic(topic);
	forumService.addPost(post);
	
	User userDb = userService.getUserByUserName("tom");
	Topic topicDb = forumService.getTopicByTopicId(1);
	assertEquals(post.getPostId()>1, true);
	assertEquals(userDb.getCredit(), 105);
	assertEquals(topicDb.getReplies(), 2);
}