functions.add(function1);
functions.add(function2);
functions.add(function3);
FunctionDAO mockedFunctionDAO = mock(FunctionDAO.class);
reportDesignAction.setFunctionDAO(mockedFunctionDAO);
when(mockedFunctionDAO.findAll()).thenReturn(functions);
String returnString = reportDesignAction.populateDimensionAndMeasureList();
assertEquals(returnString, "success");
//asserting