@Test
public void testFiredTypeEvent() throws Exception{

    RealAttribute vf = new RealAttribute("height");
    Categorize2String c2s = new Categorize2String(new StringLiteral("youhou"),new StringLiteral("fallback"), vf);
    CategorizedString cs = new CategorizedString(c2s);
    DummyTypeListener tl = new DummyTypeListener();
    cs.addListener(tl);
    cs.setParameter(new StringLiteral("literal"));
    assertTrue(tl.count == 1);
    cs.setParameter(c2s);
    assertTrue(tl.count == 2);
}