/**
* Test {@link TweetPollSwitch}
*/
@Test
public void testTweetPollSwitch() {
final TweetPollSwitch tpollSwitch = new TweetPollSwitch();
QuestionAnswer qAnswers = createQuestionAnswer("", this.initQuestion,
"HxjG823Dm");
tpollSwitch.setAnswers(qAnswers);
tpollSwitch.setCodeTweet("cod9kd");
tpollSwitch.setDateUpdated(new Date());
tpollSwitch.setRelativeUrl("http://encuestame.org");
tpollSwitch.setShortUrl("http://enme.gl");
//tpollSwitch.setSwitchId(2L);
tpollSwitch.setTweetPoll(this.initTweetPoll);
getSurveyDaoImp().saveOrUpdate(tpollSwitch);
assertNotNull(tpollSwitch.getAnswers());
assertNotNull(tpollSwitch.getDateUpdated());
assertNotNull(tpollSwitch.getCodeTweet());
assertNotNull(tpollSwitch.getRelativeUrl());
assertNotNull(tpollSwitch.getShortUrl());
assertNotNull(tpollSwitch.getSwitchId());
assertNotNull(tpollSwitch.getTweetPoll());
}