    @Test
    public void testGetSqlColumnEntityHints() throws Exception {

        String sql = "select\r\n ISNULL(a,ISNULL(z,'')) /*COLA*/, 'lastName, firstName'/*COLB*/, c/*  COLC */, d /*  \"COL D\" */ from test;";
        Map<Integer, String> hints = RdbmsReader.getSqlColumnEntityHints(sql);
        assertEquals(hints.get(1), "COLA");
        assertEquals(hints.get(2), "COLB");
        assertEquals(hints.get(3), "COLC");
        assertEquals(hints.get(4), "\"COL D\"");
        
        
        // Do not allow duplicate entity attribute combinations.
        String dupeAtribSQL = 
                "select" + 
                "    a   /* test.a */" + 
                "    , b /* test.b */" + 
                "    , c /* test.a */" + 
                "from test;";
        boolean errorFound = false;
        try {
            RdbmsReader.getSqlColumnEntityHints(dupeAtribSQL);
        } catch(MisconfiguredException e) {
            errorFound = true;
        }
        assertEquals(errorFound,true);
        
        
        // Allow duplicate entity names
        String dupeEntitySQL = 
                "select" + 
                "    a   /* test */" + 
                "    , b /* test */" + 
                "    , c /* test */" + 
                "from test;";
        errorFound = false;
        try {
            RdbmsReader.getSqlColumnEntityHints(dupeEntitySQL);
        } catch(MisconfiguredException e) {
            errorFound = true;
        }
        assertEquals(errorFound,false);
    }