/**
* Test {@link QuestionBean}.
*/
@Test
public void testUnitQuestionBean(){
final QuestionBean questionBean = new QuestionBean();
questionBean.setId(1L);
questionBean.setListAnswers(new ArrayList<QuestionAnswerBean>());
questionBean.setQuestionName("Why sky is blue?");
questionBean.setStateId(1L);
questionBean.setUserId(1L);
questionBean.setVersion("1.0");
questionBean.setSlugName("Why-sky-is-blue-");
questionBean.setHits(10L);
assertNotNull(questionBean.getId());
assertEquals(questionBean.getListAnswers().size(), 0);
assertNotNull(questionBean.getQuestionName());
assertNotNull(questionBean.getStateId());
assertNotNull(questionBean.getUserId());
assertNotNull(questionBean.getVersion());
}