@Override
protected void onSetUp() {
TestMdiWindow window = TestMdiWindow.createNewWindow(getClass());
internalFrame = window.internalFrame();
robot.showWindow(window);
assertThat(window.internalFrame().isVisible()).isTrue();
}
@Test
public void should_close_JInternalFrame() {
JInternalFrameCloseTask.close(internalFrame);