tRes.tested("ImageMap", false);
return;
}
Object o = oObj.getPropertyValue("ImageMap");
XIndexContainer xIndexContainer = (XIndexContainer)UnoRuntime.queryInterface(XIndexContainer.class, o);
util.dbg.printInterfaces(xIndexContainer);
int elementCountFirst = xIndexContainer.getCount();
xIndexContainer.insertByIndex(elementCountFirst, imapObject);
// this does not really change the property: the implementation
// behind "ImageMap" stays the same, but for a real change a C++
// implementation is needed. See css.lang.XUnoTunnel
oObj.setPropertyValue("ImageMap", xIndexContainer);
Object newObject = oObj.getPropertyValue("ImageMap");
xIndexContainer = (XIndexContainer)UnoRuntime.queryInterface(XIndexContainer.class, newObject);
int elementCountSecond = xIndexContainer.getCount();
result = (elementCountFirst + 1 == elementCountSecond);
tRes.tested("ImageMap", result);
} catch (com.sun.star.beans.UnknownPropertyException e) {
log.println("Exception while checking 'ImageMap'");