@Test
public void testDefaultCancel() {

    JXRootPane rootPane = new JXRootPane();
    assertNull(rootPane.getCancelButton());
    Action action = rootPane.getActionMap().get("esc-action");
    assertFalse(action.isEnabled());
}