"<?xml version=\"1.0\"?>\n<!DOCTYPE database SYSTEM \"" + LocalEntityResolver.DTD_PREFIX + "\">\n" +
    public void testIndices1() throws Exception    {        Database model = readModel(            "<database name='test'>\n" +            "  <table name='TableWidthIndex'>\n" +            "    <column name='id'\n" +            "            type='DOUBLE'\n" +            "            primaryKey='true'\n" +            "            required='true'/>\n" +            "    <column name='when'\n" +            "            type='TIMESTAMP'\n" +            "            required='true'/>\n" +            "    <column name='value'\n" +            "            type='SMALLINT'\n" +            "            default='1'/>\n" +            "    <index name='test index'>\n" +            "      <index-column name='value'/>\n" +            "    </index>\n" +            "    <index>\n" +            "      <index-column name='when'/>\n" +            "      <index-column name='id'/>\n" +            "    </index>\n" +            "  </table>\n" +            "</database>");        assertEquals("test",                     model.getName());        assertEquals(1,                     model.getTableCount());                Table table = model.getTable(0);        assertEquals("TableWidthIndex",                     table.getName());        assertNull(table.getDescription());        assertEquals(0, table.getAutoIncrementColumns().length);        assertEquals(3,                     table.getColumnCount());        assertEquals(0,                     table.getForeignKeyCount());        assertEquals(2,                     table.getIndexCount());        Column column = table.getColumn(0);        assertEquals("id",                     column.getName());        assertEquals("DOUBLE",                     column.getType());        assertEquals(Types.DOUBLE,                     column.getTypeCode());        assertTrue(column.isPrimaryKey());        assertTrue(column.isRequired());        assertFalse(column.isAutoIncrement());        assertNull(column.getDefaultValue());        assertNull(column.getDefaultValue());        assertNull(column.getDescription());        column = table.getColumn(1);        assertEquals("when",                     column.getName());        assertEquals("TIMESTAMP",                     column.getType());        assertEquals(Types.TIMESTAMP,                     column.getTypeCode());        assertFalse(column.isPrimaryKey());        assertTrue(column.isRequired());        assertFalse(column.isAutoIncrement());        assertNull(column.getDefaultValue());        assertNull(column.getDescription());        column = table.getColumn(2);        assertEquals("value",                     column.getName());        assertEquals("SMALLINT",                     column.getType());        assertEquals(Types.SMALLINT,                     column.getTypeCode());        assertFalse(column.isPrimaryKey());        assertFalse(column.isRequired());        assertFalse(column.isAutoIncrement());        assertEquals("1",                     column.getDefaultValue());        assertNull(column.getDescription());        Index index = table.getIndex(0);        assertEquals("test index",                     index.getName());        assertFalse(index.isUnique());        assertEquals(1,                     index.getColumnCount());        IndexColumn indexColumn = index.getColumn(0);        assertEquals("value",                     indexColumn.getName());        assertNull(indexColumn.getSize());        index = table.getIndex(1);        assertNull(index.getName());        assertFalse(index.isUnique());        assertEquals(2,                     index.getColumnCount());        indexColumn = index.getColumn(0);        assertEquals("when",                     indexColumn.getName());        assertNull(indexColumn.getSize());        indexColumn = index.getColumn(1);        assertEquals("id",                     indexColumn.getName());        assertNull(indexColumn.getSize());        assertEquals(            "  <database name=\"test\">\n" +            "    <table name=\"TableWidthIndex\">\n" +            "      <column name=\"id\" primaryKey=\"true\" required=\"true\" type=\"DOUBLE\" autoIncrement=\"false\"/>\n" +            "      <column name=\"when\" primaryKey=\"false\" required=\"true\" type=\"TIMESTAMP\" autoIncrement=\"false\"/>\n" +            "      <column name=\"value\" primaryKey=\"false\" required=\"false\" type=\"SMALLINT\" default=\"1\" autoIncrement=\"false\"/>\n" +            "      <index name=\"test index\">\n" +            "        <index-column name=\"value\"/>\n" +            "      </index>\n" +            "      <index>\n" +            "        <index-column name=\"when\"/>\n" +            "        <index-column name=\"id\"/>\n" +            "      </index>\n" +            "    </table>\n" +            "  </database>\n",            writeModel(model));    }