ZenMenu implements CircularMenu.MenuStateChangeListener, ZenSketch.PaintListener { public void toggle() { getCircularMenu().toggle(true); getMenuButton().rotate(); } ZenMenu(ZenSketchView zenSketchView); static ZenMenu newInstance(ZenSketchView zenSketchView); void toggle(); FloatingActionButton getButtonViewFor(MenuButton menuButton); @Override void onMenuOpened(CircularMenu circularMenu); @Override void onMenuClosed(CircularMenu circularMenu); @Override void onPaintingStart(); @Override void onPaintingStop();  }
@Test public void testThatToggleDelegatesOnCircularMenu() { zenMenu.toggle(); verify(circularMenu).toggle(true); }
@Test public void testThatToggleRotatesMenuButton() { zenMenu.toggle(); verify(menuButton).rotate(); }