### Question:
GMouseListenerAdapter extends MouseAdapter { private void reset() { didConsume = false; didPopup = false; }  boolean shouldConsume(MouseEvent e); void doubleClickTriggered(MouseEvent e); void popupTriggered(MouseEvent e); @Override void mousePressed(MouseEvent e); @Override void mouseReleased(MouseEvent e); @Override void mouseClicked(MouseEvent e);  }### Answer:
@Test public void testDoubleClick_MultipleMouseButtons_RightThenLeft_NoDoubleClickTriggered() { press(RIGHT, 1, true); release(RIGHT, 1, false); click(RIGHT, 1, false); assertPopupOn(MOUSE_PRESSED); listener.reset(); press(LEFT, 2, false); release(LEFT, 2, false); click(LEFT, 2, false); assertNoPopupTriggered(); assertNoDoubleClickTriggered(); }
@Test public void testPopupTheDoubleClick() { press(LEFT, 1, false); release(LEFT, 1, false); click(LEFT, 1, true); assertPopupOnClicked(); listener.reset(); doubleClick(LEFT); assertNoPopupTriggered(); assertDoubleClick(); }