connectionList.add(connection3);
MappingAction mappingAction = new MappingAction();
//mock the dao to return the list of connections
ConnectionDAO mockedConnectionDAO = mock(ConnectionDAO.class);
mappingAction.setConnectionDAO(mockedConnectionDAO);
when(mockedConnectionDAO.findAll()).thenReturn(connectionList);
//Code for creating List<ValueType> & mock for it.
ValueType valueType1 = new ValueType(101, datastore, "valueType1", "className1",
"className1", true);
ValueType valueType2 = new ValueType(102, datastore, "valueType2", "className2",