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