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