@Test
public void testReadXml() {

    Database database = DatabaseXmlUtil.read(getClass().getResourceAsStream("/testDatabaseIO.xml"));
    assertNotNull(database);
    assertEquals(2, database.getTableCount());
    assertEquals("test", database.getName());
    
    Table table = database.getTable(0);
    assertEquals("test_simple_table", table.getName());
    assertEquals(8, table.getColumnCount());
    assertEquals(1, table.getPrimaryKeyColumnCount());
    assertEquals("id", table.getPrimaryKeyColumnNames()[0]);       
    
    Table tableWithAmp = database.getTable(1);
    assertEquals("testColumnWith&", tableWithAmp.getName());
    assertEquals("&Amp", tableWithAmp.getColumn(0).getName());
}