void () { myParent.clearOwnActionsIds(); myChild.clearOwnActionsIds(); myParent.addShortcut(ACTION_2, shortcut2); myParent.addShortcut(ACTION_2, shortcutA); myParent.addShortcut(ACTION_2, shortcutB); myChild.removeShortcut(ACTION_2, shortcut2); assertThat(myChild.getShortcuts(ACTION_2)).containsExactly(shortcutA, shortcutB); }