// deselect certificate validation
pageBot.setValidateCertificates( false );
assertFalse( pageBot.isValidateCertificatesSelected() );
// click OK, this should write the property to the file
preferencesBot.clickOkButton();
assertTrue( file.exists() );
List<String> lines = FileUtils.readLines( file );
assertTrue( lines.contains( "validateCertificates=false" ) );
// open dialog again, check that certificate validation checkbox is not selected