MusicPerformer implements StepPerformer { public static MusicPerformer newInstance(RainbowInputController rainbowInputController) { return new MusicPerformer(RELEASED_MUSIC_PERFORMER, rainbowInputController); } protected  MusicPerformer(MediaPlayer mediaPlayer, RainbowInputController rainbowInputController); static MusicPerformer newInstance(RainbowInputController rainbowInputController); @Override void init(); @Override void doStep(); @Override void reset(); @Override void disable(); @Override void enable();  }
@Test public void testThatNewInstanceReturnsNotNullMusicPerformer() { Assertions.assertThat(BrushOptionsPreferences.newInstance()).isNotNull(); }
@Test public void testThatNewInstanceReturnsANewInstance() { MusicPerformer firstInstance = MusicPerformer.newInstance(rainbowInputController); MusicPerformer secondInstance = MusicPerformer.newInstance(rainbowInputController); Assertions.assertThat(firstInstance).isNotEqualTo(secondInstance); }