### Question:
NodeInfoWindow extends Window { @Override public void attach() { super.attach(); int width = (int)getApplication().getMainWindow().getWidth(); int height = (int)getApplication().getMainWindow().getHeight(); int browserWidth = (int)(sizePercentage * width), browserHeight = (int)(sizePercentage * height); int windowWidth = browserWidth + widthCushion, windowHeight = browserHeight + heightCushion; setWidth("" + windowWidth + "px"); setHeight("" + windowHeight + "px"); setPositionX((width - windowWidth)/2); setPositionY((height - windowHeight)/2); nodeInfoBrowser.setType(Embedded.TYPE_BROWSER); nodeInfoBrowser.setWidth("" + browserWidth + "px"); nodeInfoBrowser.setHeight("" + browserHeight + "px"); } NodeInfoWindow(final Node node, final URL nodeURL); @Override void attach();  }### Answer:
@Test public void testAttach() { app.setMainWindow(mainWindow); app.getMainWindow().addWindow(window); assertTrue(app.getMainWindow().getChildWindows().contains(window)); app.getMainWindow().removeWindow(window); assertFalse(app.getMainWindow().getChildWindows().contains(window)); }