public void testInvalidData()
     throws CSVFormatException, AddPatientFileException, FileNotFoundException {
   DAOFactory prodDAO = DAOFactory.getProductionInstance();
   AuthDAO authDAO = prodDAO.getAuthDAO();
   InputStream testFile = new FileInputStream(fileDirectory + "HCPPatientUploadInvalidData.csv");
   AddPatientFileAction apfa = new AddPatientFileAction(testFile, null, 0);
   assertEquals(1, apfa.getPatients().size());
   assertTrue(apfa.getErrors().hasErrors());
 }
 public void testInvalidHeader()
     throws CSVFormatException, AddPatientFileException, FileNotFoundException {
   DAOFactory prodDAO = DAOFactory.getProductionInstance();
   AuthDAO authDAO = prodDAO.getAuthDAO();
   InputStream testFile = new FileInputStream(fileDirectory + "HCPPatientUploadInvalidField.csv");
   try {
     new AddPatientFileAction(testFile, null, 0);
   } catch (AddPatientFileException e) {
     return;
   }
   assertTrue(false);
 }