try{
// get all components from the desktop
XComponent xComponent = (XComponent) UnoRuntime.queryInterface(
XComponent.class, allComp.nextElement());
XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xComponent);
String frameName = xModel.getCurrentController().getFrame().getName();
// check if this frame was used in creation of test environment
if (windowsPosSize.containsKey(frameName)){
Rectangle oldRect = (Rectangle) windowsPosSize.get(frameName);
XWindow xWindow = xModel.getCurrentController().getFrame().getContainerWindow();
Rectangle newRect = xWindow.getPosSize();
boolean ok = oldRect.Height == newRect.Height;
ok &= oldRect.Width == newRect.Width;