SketchClearer implements SketchClearListener { public static SketchClearer newInstance(ZenSketchView zenSketchView) { return new SketchClearer(SketchRetriever.INSTANCE.getZenSketch(), zenSketchView); } SketchClearer(ZenSketch zenSketch, ZenSketchView zenSketchView); static SketchClearer newInstance(ZenSketchView zenSketchView); void clearSketch(); @Override void onSketchCleared();  }
@Test public void testThatNewInstanceReturnsNotNullSketchClearer() { Assertions.assertThat(SketchClearer.newInstance(zenSketchView)).isNotNull(); }
@Test public void testThatNewInstanceReturnsANewInstance() { SketchClearer firstInstance = SketchClearer.newInstance(zenSketchView); SketchClearer secondInstance = SketchClearer.newInstance(zenSketchView); Assertions.assertThat(firstInstance).isNotEqualTo(secondInstance); }