+ INDENT + INDENT + INDENT + "<fk-pointing-to-this-class column=\"Class1Id\"/>" + ENDL + INDENT + INDENT + INDENT + "<fk-pointing-to-element-class column=\"Class2Id\"/>" + ENDL
+ INDENT + INDENT + INDENT + "<fk-pointing-to-this-class column=\"Cod1\"/>" + ENDL + INDENT + INDENT + INDENT + "<fk-pointing-to-element-class column=\"Class1\"/>" + ENDL
    public void testGenerateClassDescriptorFields() throws Exception {        AttributeDescriptor atd1 = new AttributeDescriptor("name1", true, "java.lang.String");        Set atts = new LinkedHashSet(Collections.singleton(atd1));        ReferenceDescriptor rfd1 = new ReferenceDescriptor("rfd1", false, "Class2", null);        Set refs = new LinkedHashSet(Collections.singleton(rfd1));        // only need simple unidirectionals cods        CollectionDescriptor cod1 = new CollectionDescriptor("cod1", false, "Class2", null, true);        Set cols = new LinkedHashSet(Collections.singleton(cod1));        ClassDescriptor cld1 = new ClassDescriptor("Class1", null, null, false, atts, refs, cols);        ClassDescriptor cld2 = new ClassDescriptor("Class2", null, null, false, new HashSet(), new HashSet(), new HashSet());        Model model = new Model("model", new HashSet(Arrays.asList(new Object[] {cld1, cld2})));        String expected = INDENT + "<class-descriptor class=\"Class1\" table=\"Class1\">" + ENDL            + INDENT + INDENT + "<field-descriptor name=\"id\" column=\"ID\" jdbc-type=\"INTEGER\" primarykey=\"true\" autoincrement=\"true\"/>" + ENDL            + INDENT + INDENT + "<field-descriptor name=\"name1\" column=\"name1\" jdbc-type=\"LONGVARCHAR\"/>" + ENDL            + INDENT + INDENT + "<field-descriptor name=\"rfd1Id\" column=\"rfd1Id\" access=\"anonymous\" jdbc-type=\"INTEGER\"/>" + ENDL            + INDENT + INDENT + "<reference-descriptor name=\"rfd1\" class-ref=\"Class2\" proxy=\"true\">" + ENDL            + INDENT + INDENT + INDENT + "<foreignkey field-ref=\"rfd1Id\"/>" + ENDL            + INDENT + INDENT + "</reference-descriptor>" + ENDL            + INDENT + INDENT + "<collection-descriptor name=\"cod1\" element-class-ref=\"Class2\""            + " collection-class=\"java.util.ArrayList\" proxy=\"true\" indirection-table=\"Class1Cod1\">" + ENDL            + INDENT + INDENT + INDENT + "<fk-pointing-to-this-class column=\"Class1Id\"/>" + ENDL            + INDENT + INDENT + INDENT + "<fk-pointing-to-element-class column=\"Class2Id\"/>" + ENDL            + INDENT + INDENT + "</collection-descriptor>" + ENDL            + INDENT + "</class-descriptor>" + ENDL + ENDL;        assertEquals(expected, mo.generate(cld1));    }