InkDropSizeLimiter { public static InkDropSizeLimiter newInstance(BrushOptionsPreferences brushOptionsPreferences) { return new InkDropSizeLimiter(brushOptionsPreferences); } InkDropSizeLimiter(BrushOptionsPreferences brushOptionsPreferences); static InkDropSizeLimiter newInstance(BrushOptionsPreferences brushOptionsPreferences);  }
@Test public void testThatNewInstanceReturnsNotNullInkDropSizeLimiter() { assertThat(InkDropSizeLimiter.newInstance(brushOptionsPreferences)).isNotNull(); }
@Test public void testThatNewInstanceReturnsANewInstance() { InkDropSizeLimiter firstInstance = InkDropSizeLimiter.newInstance(brushOptionsPreferences); InkDropSizeLimiter secondInstance = InkDropSizeLimiter.newInstance(brushOptionsPreferences); assertThat(firstInstance).isNotEqualTo(secondInstance); }