//@@author A0139925U
package guitests;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import guitests.guihandles.MainGuiHandle;

public class HotkeyManagerGuiTest extends TaskManagerGuiTest {

    @Test
    public void toggleWindowFocus() {
        assertMainGuiHidden(mainGui.toggleMainGuiUsingCtrlAltDAccelerator());
        assertMainGuiHidden(mainGui.toggleMainGuiUsingCtrlQAccelerator());
        assertMainGuiOpen(mainGui.toggleMainGuiUsingCtrlAltDAccelerator());
    }

    private void assertMainGuiOpen(MainGuiHandle mainGuiHandle) {
        assertTrue(mainGuiHandle.getPrimaryStage().isFocused());
    }

    private void assertMainGuiHidden(MainGuiHandle mainGuiHandle) {
        assertFalse(mainGuiHandle.getPrimaryStage().isFocused());
    }

}

@@ -656,32 +656,82 @@
 ge().isFocused()
+ %7C%7C !mainGuiHandle.getPrimaryStage().isIconified()
 );%0A    %7D%0A%0A    pr
@@ -851,24 +851,73 @@
 .isFocused()
+ %7C%7C mainGuiHandle.getPrimaryStage().isIconified()
 );%0A    %7D%0A%0A%7D%0A

Test fix