ZenMenu implements CircularMenu.MenuStateChangeListener, ZenSketch.PaintListener { public static ZenMenu newInstance(ZenSketchView zenSketchView) { return new ZenMenu(zenSketchView); } 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 testThatNewInstanceReturnsNotNullInstance() { Assertions.assertThat(ZenMenu.newInstance(zenSketchView)).isNotNull(); }
@Test public void testThatNewInstanceReturnsANewInstance() { ZenMenu firstInstance = ZenMenu.newInstance(zenSketchView); ZenMenu secondInstance = ZenMenu.newInstance(zenSketchView); Assertions.assertThat(firstInstance).isNotEqualTo(secondInstance); }