void () { MouseShortcut mouseShortcut = new MouseShortcut(MouseEvent.BUTTON1, 0, 1); assertEquals("The same MouseShortcut should be equals to itself", mouseShortcut, mouseShortcut); mouseShortcut = new MouseShortcut(MouseEvent.BUTTON2, 0, 1); assertEquals("The same MouseShortcut should be equals to itself", mouseShortcut, mouseShortcut); mouseShortcut = new MouseShortcut(MouseEvent.BUTTON1, InputEvent.ALT_DOWN_MASK, 1); assertEquals("The same MouseShortcut should be equals to itself", mouseShortcut, mouseShortcut); mouseShortcut = new MouseShortcut(MouseEvent.BUTTON1, InputEvent.CTRL_DOWN_MASK, 2); assertEquals("The same MouseShortcut should be equals to itself", mouseShortcut, mouseShortcut); }