@Test
public void testCopy() throws Exception {

    final SchematronCriteria criteria = SchematronCriteriaGroupRepositoryTest.newSchematronCriteria(_inc);
    final SchematronCriteria copy = criteria.copy();
    Element expectedXml = criteria.asXml();
    expectedXml.removeChild("id");
    Element actualXml = copy.asXml();
    actualXml.removeChild("id");
    assertEquals(Xml.getString(expectedXml), Xml.getString(actualXml));
}