* Test get surveys by folder.
* @throws EnMeExpcetion
*/
@Test
public void testGetSurveysByFolder() throws EnMeExpcetion{
final FolderBean fbean = surveyService.createSurveyFolder(
"My First Folder", this.myUsername);
Assert.assertNotNull(fbean);
final SurveyBean mySurveyBean = createSurveyBean("My Second survey",
this.myUsername, this.mySurveyDate.getTime());
final Survey mySurvey = surveyService.createSurvey(mySurveyBean, this.request);
surveyService.addSurveyToFolder(fbean.getId(), this.myUsername,
mySurvey.getSid());
final List<Survey> listSurvey = surveyService.retrieveSurveyByFolder(
getSpringSecurityLoggedUserAccount().getAccount().getUid(),
fbean.getId());
assertEquals("should be equals", 1, listSurvey.size());
}