SketchInteractionListener implements RainbowInputController.RainbowInteractionListener { @Override public void onFingerDragged(MotionEvent event) { inkPerformer.doStep(); } SketchInteractionListener(StepPerformer inkPerformer); static SketchInteractionListener newInstance(StepPerformer inkPerformer); @Override void onSketchTouched(MotionEvent event); @Override void onSketchReleased(MotionEvent event); @Override void onFingerDragged(MotionEvent event); @Override void onMotionEvent(MotionEvent event); void setPaintListener(ZenSketch.PaintListener paintListener);  }
@Test public void testThatOnFingerDraggedDoesStepOnInkPerformer() { sketchInteractionListener.onFingerDragged(motionEvent); verify(inkPerformer).doStep(); }