### Question:
Counter { public int add(int start, int finish) { int count = 0; for (int i = start; i <= finish; i++) { if (i % 2 == 0) { count += i; } } return count; }  int add(int start, int finish);  }### Answer:
@Test public void whenSumEvenNumbersFromOneToTenThenThirty() { Counter sumSquares = new Counter(); int result = sumSquares.add(1, 10); assertThat(result, is(30)); }