@SuppressWarnings(
     "PMD.SignatureDeclareThrowsException") // one of the dependent methods throws Exception
 private void checkForValueObjectConversionErrorWhenEnteringInvalidDate(
     SubmitFormParameters invalidFormParameters, SubmitFormParameters validFormParameters)
     throws Exception {
   CollectionSheetEntrySelectPage selectPage =
       new CollectionSheetEntryTestHelper(selenium)
           .loginAndNavigateToCollectionSheetEntrySelectPage();
   selectPage.verifyPage();
   boolean onlyTypeIfFieldIsEmpty = true;
   boolean waitForPageToLoad = true;
   selectPage.submitAndGotoCollectionSheetEntryEnterDataPageWithoutVerifyingPage(
       invalidFormParameters, onlyTypeIfFieldIsEmpty, waitForPageToLoad);
   CollectionSheetEntrySelectPage collectionSheetEntrySelectPageWithError =
       new CollectionSheetEntrySelectPage(selenium);
   collectionSheetEntrySelectPageWithError.verifyPage();
   Assert.assertTrue(collectionSheetEntrySelectPageWithError.isErrorMessageDisplayed());
   onlyTypeIfFieldIsEmpty = false;
   waitForPageToLoad = false;
   CollectionSheetEntryEnterDataPage enterDataPage =
       collectionSheetEntrySelectPageWithError.submitAndGotoCollectionSheetEntryEnterDataPage(
           validFormParameters, onlyTypeIfFieldIsEmpty, waitForPageToLoad);
   enterDataPage.verifyPage();
 }