+ 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=\"Cod2\"/>" + ENDL + INDENT + INDENT + INDENT + "<fk-pointing-to-element-class column=\"Class1\"/>" + ENDL
    public void testDoAssociations() throws Exception {        ReferenceDescriptor rfd1 = new ReferenceDescriptor("rfd1", false, "Class2", null);        ReferenceDescriptor rfd2 = new ReferenceDescriptor("rfd2", false, "Class2", null);        Set refs = new LinkedHashSet(Arrays.asList(new Object[] {rfd1, rfd2}));        // only need simple unidirectional cods        CollectionDescriptor cod1 = new CollectionDescriptor("cod1", false, "Class2", null, true);        CollectionDescriptor cod2 = new CollectionDescriptor("cod2", false, "Class2", null, true);        Set cols = new LinkedHashSet(Arrays.asList(new Object[] {cod1, cod2}));        ClassDescriptor cld1 = new ClassDescriptor("Class1", null, null, false, new HashSet(), 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 + INDENT + "<field-descriptor name=\"rfd1Id\" column=\"rfd1Id\" access=\"anonymous\" jdbc-type=\"INTEGER\"/>" + ENDL            + INDENT + INDENT + "<field-descriptor name=\"rfd2Id\" column=\"rfd2Id\" access=\"anonymous\" jdbc-type=\"INTEGER\"/>" + ENDL;        String references = 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 + "<reference-descriptor name=\"rfd2\" class-ref=\"Class2\" proxy=\"true\">" + ENDL            + INDENT + INDENT + INDENT + "<foreignkey field-ref=\"rfd2Id\"/>" + ENDL            + INDENT + INDENT + "</reference-descriptor>" + ENDL;        String collections = 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 + INDENT + "<collection-descriptor name=\"cod2\" element-class-ref=\"Class2\""            + " collection-class=\"java.util.ArrayList\" proxy=\"true\" indirection-table=\"Class1Cod2\">" + 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;        mo.collections = new StringBuffer();        mo.references = new StringBuffer();        StringBuffer sb = new StringBuffer();        mo.doAssociations(cld1, sb);        assertEquals(expected, sb.toString());        assertEquals(references, mo.references.toString());        assertEquals(collections, mo.collections.toString());    }