void () { myParent.clearOwnActionsIds(); myChild.clearOwnActionsIds(); MouseShortcut mouseShortcut = new MouseShortcut(1, InputEvent.BUTTON2_MASK, 1); myParent.addShortcut(ACTION_2, mouseShortcut); assertThat(myChild.getActionIds(mouseShortcut)).containsExactly(ACTION_2); myChild.removeShortcut(ACTION_2, mouseShortcut); assertThat(myChild.getActionIds(mouseShortcut)).isEmpty(); }