void () { assertSameElements(myChild.getShortcuts(ACTION_1), shortcut1, shortcutA); assertSameElements(myChild.getActionIds(shortcut1), ACTION_1); assertSameElements(myChild.getActionIds(shortcutA), ACTION_1); assertTrue(myChild.hasOwnActionId(ACTION_1)); myChild.clearOwnActionsId(ACTION_1); assertSameElements(myChild.getShortcuts(ACTION_1), shortcut1); assertSameElements(myChild.getActionIds(shortcut1), ACTION_1); assertSameElements(myChild.getActionIds(shortcutA)); assertFalse(myChild.hasOwnActionId(ACTION_1)); myChild.removeShortcut(ACTION_2, shortcut2); assertSameElements(myChild.getShortcuts(ACTION_2)); assertSameElements(myChild.getActionIds(shortcut2)); assertTrue(myChild.hasOwnActionId(ACTION_2)); myChild.clearOwnActionsId(ACTION_2); assertSameElements(myChild.getShortcuts(ACTION_2), shortcut2); assertSameElements(myChild.getActionIds(shortcut2), ACTION_2); assertFalse(myChild.hasOwnActionId(ACTION_2)); }