void () { myParent.clearOwnActionsIds(); myChild.clearOwnActionsIds(); myParent.addShortcut(ACTION_1, shortcut1); myParent.addShortcut(ACTION_1, shortcut2); assertTrue(myParent.hasOwnActionId(ACTION_1)); assertSameElements(myParent.getShortcuts(ACTION_1), shortcut1, shortcut2); assertFalse(myChild.hasOwnActionId(ACTION_1)); assertSameElements(myChild.getShortcuts(ACTION_1), shortcut1, shortcut2); myChild.removeShortcut(ACTION_1, shortcut1); assertTrue(myParent.hasOwnActionId(ACTION_1)); assertSameElements(myParent.getShortcuts(ACTION_1), shortcut1, shortcut2); assertTrue(myChild.hasOwnActionId(ACTION_1)); assertSameElements(myChild.getShortcuts(ACTION_1), shortcut2); }