instance.importDictionary("test/testD.dicml", "D1"); instance.activateDictionary("D1");
instance.importDictionary("test/testD.dicml", "D1" + SPECIAL_CHARS); instance.activateDictionary("D1" + SPECIAL_CHARS);
  public void testGetEntry() {    System.out.println("getEntry");        String lemma = "Match";    SQLiteProvider instance = new SQLiteProvider("owl.db");        instance.importDictionary("test/testMatch.dicml", "Get");    instance.activateDictionary("Get");        String[][] result = instance.getEntry(lemma);    if(result.length != 1)      fail("there should be *exactly* one \"Match\"");        lemma = "C";    result = instance.getEntry(lemma);    if(result.length != 0)      fail("there should be *no* \"C\"");        lemma = "match";    result = instance.getEntry(lemma);    if(result.length != 0)      fail("there should be *no* \"match\"");            lemma = "short";    String expResult = "<entry id=\"test-short\"><lemma><l>short</l></lemma></entry>";     result = instance.getEntry(lemma);    if(result.length != 1)      fail("there should be *exactly* one match for \"short\"");    assertEquals(expResult, result[0][0]);        instance.importDictionary("test/testC.dicml", "Set");    instance.activateDictionary("Set");        result = instance.getEntry("C");    assertEquals("Set", result[0][1]);        result = instance.getEntry("short");    assertEquals("Get", result[0][1]);        // now try some stuff with the second get entry    result = instance.getEntry(lemma, null);    assertEquals(expResult, result[0][0]);        instance.importDictionary("test/testD.dicml", "D1");    instance.activateDictionary("D1");    instance.importDictionary("test/testD2.dicml", "D2");        result = instance.getEntry("D", "D2");    if(result.length != 1)      fail("there should be *exactly* one match for \"D\" in D2 - found " + result.length);    assertEquals("D2", result[0][1]);                instance.activateDictionary("D2");    result = instance.getEntry("D", "D2");    if(result.length != 1)      fail("there should be *exactly* one match for \"D\" in D2 - found " + result.length);    assertEquals("D2", result[0][1]);          }