analysisList.add(analysis1);
analysisList.add(analysis2);
analysisList.add(analysis3);
// mock DAO
AnalysisDAO mockedAnalysisDAO = mock(AnalysisDAO.class);
AnalysisAction analysisAction = new AnalysisAction();
analysisAction.setAnalysisDAO(mockedAnalysisDAO);
when(mockedAnalysisDAO.findAll()).thenReturn(analysisList);
String successString = analysisAction.initializeAnalysis();
assertEquals(successString, "success");
//Test Analysis1
assertEquals(analysisList.get(0).getName(), analysisAction.getAnalysisViewList().get(0).getName());
assertEquals(analysisList.get(0).getText(), analysisAction.getAnalysisViewList().get(0).getText());