InkPerformer implements StepPerformer, RainbowImage.LoadPictureListener { public static InkPerformer newInstance(InkDrop inkDrop, RainbowDrawer rainbowDrawer, RainbowInputController rainbowInputController) { return new InkPerformer( inkDrop, rainbowDrawer, rainbowInputController ); } protected  InkPerformer(InkDrop inkDrop,
                           RainbowDrawer rainbowDrawer,
                           RainbowInputController rainbowInputController); static InkPerformer newInstance(InkDrop inkDrop,
                                           RainbowDrawer rainbowDrawer,
                                           RainbowInputController rainbowInputController); @Override void init(); @Override void onLoadSucceed(RainbowImage imageLoaded); @Override void onLoadFail(); @Override void doStep(); @Override void reset(); @Override void enable(); @Override void disable();  }
@Test public void testThatNewInstanceReturnsNotNullInkPerformer() { assertThat(InkPerformer.newInstance(inkDrop, rainbowDrawer, rainbowInputController)).isNotNull(); }
@Test public void testThatNewInstanceReturnsANewInstance() { InkPerformer firstInstance = InkPerformer.newInstance(inkDrop, rainbowDrawer, rainbowInputController); InkPerformer secondInstance = InkPerformer.newInstance(inkDrop, rainbowDrawer, rainbowInputController); assertThat(firstInstance).isNotEqualTo(secondInstance); }