MouseEvent event1 = new MouseEvent(comp, 12345, now, modifiers, x, y,
clickCount, popupTrigger, MouseEvent.BUTTON2);
MouseEvent event2 = new MouseEvent(comp, 12345, now, modifiers, x, y,
1, !popupTrigger, MouseEvent.BUTTON1);
EditorMouseEvent evt = new EditorMouseEvent();
evt.setMouseEvent(event1, scaling);
// Check assertions
assertTrue(Math.abs(evt.getX() - (x * 2)) < EPS);
assertTrue(Math.abs(evt.getY() - (y * 2)) < EPS);
assertTrue(evt.isPopupTrigger());
assertEquals(2, evt.getClickCount());
assertFalse(evt.isMainButton());
assertEquals(event1, evt.getMouseEvent());
evt.setMouseEvent(event2, scaling);
// Check assertions
assertFalse(evt.isPopupTrigger());
assertEquals(1, evt.getClickCount());
assertTrue(evt.isMainButton());
assertEquals(event2, evt.getMouseEvent());
}