public void testValidEmployee() throws Exception {
    period = new Period();
    period.setStartDate(start);
    period.setEndDate(end);

    employee = new Employee();
    employee.setStartDateAndEndDate(period);

    assertTrue("Valid employee reported invalid", xmlValidator.validateRoot(employee));
  }
  /**
   * We are dealing with a sequence for the startDate and endDate, hence both are required to be
   * valid.
   */
  public void testInvalidEmployee() throws Exception {
    period = new Period();
    period.setStartDate(start);

    employee = new Employee();
    employee.setStartDateAndEndDate(period);

    assertFalse("Invalid employee found to be valid", xmlValidator.validateRoot(employee));
  }