Main { public static int square(final int num) { return num * num; } private  Main(); static int square(final int num);  }
@Test public void testSquare() { MatcherAssert.assertThat(1, Matchers.is(Main.square(1))); MatcherAssert.assertThat(4, Matchers.is(Main.square(2))); }