ZenMenu implements CircularMenu.MenuStateChangeListener, ZenSketch.PaintListener { @Override public void onPaintingStart() { isPainting = true; zenSketchView.post(this::hide); } 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 testThatOnPaintingStartDoesPostRunnable() { zenMenu.onPaintingStart(); verify(zenSketchView).post(any(Runnable.class)); }