### Question:
Counter { public int increment() { return ++counter; } Counter();  Counter(int value); int get(); int increment(); int decrement(); boolean equalsToValue(int value); String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void increment() { assertEquals(counter.increment(), INIT_VALUE + 1); assertEquals(counter.increment(), INIT_VALUE + 2); }