### Question:
SSHWindow extends Window { @Override public void attach() { super.attach(); int posX = (int)(getApplication().getMainWindow().getWidth() - getWidth())/2; int posY = (int)(getApplication().getMainWindow().getHeight() - getHeight())/2; setPositionX(posX); setPositionY(posY); } SSHWindow(ClientSession session, int width, int height); @Override void attach(); @Override void close();  }### Answer:
@Test public void testAttach() { assertTrue(app.getMainWindow().getChildWindows().contains(sshWindow)); app.getMainWindow().removeWindow(sshWindow); assertFalse(app.getMainWindow().getChildWindows().contains(sshWindow)); }