### Question:
Square { public int[] calculate(int bound) { int[] arrSquares = new int[bound]; for (int i = 0; i < bound; i++) { arrSquares[i] = (int) Math.pow(i + 1, 2); } return arrSquares; }  int[] calculate(int bound);  }### Answer:
@Test public void ifBoundEqualsFive() { Square arrSquares = new Square(); int[] result = arrSquares.calculate(5); int[] expect = {1, 4, 9, 16, 25}; assertThat(result, is(expect)); }