### Question:
Counter { public boolean equalsToValue(int value) { return counter == value; } 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 equalsToValue() { assertTrue(counter.equalsToValue(INIT_VALUE)); assertFalse(counter.equalsToValue(INIT_VALUE + 1)); }