public void testSetInvalidPropertyException() {
   boolean caughtException = false;
   try {
     validator.setProperty("thisIsAnInvalidProperty", "thisIsAnInvalidValue");
   } catch (PropertyException e) {
     caughtException = true;
   } catch (Exception e) {
   }
   assertTrue("JAXBValidator did not throw PropertyException as expected.", caughtException);
 }
 public void testSetNullPropertyException() {
   boolean caughtException = false;
   try {
     validator.setProperty(null, null);
   } catch (IllegalArgumentException e) {
     caughtException = true;
   } catch (Exception e) {
   }
   assertTrue(
       "JAXBValidator did not throw IllegalArgumentException as expected.", caughtException);
 }