@Test public void increment() { assertEquals(counter.increment(), INIT_VALUE + 1); assertEquals(counter.increment(), INIT_VALUE + 2); }
public int increment() { return ++counter; }
Counter { public int increment() { return ++counter; } }
Counter { public int increment() { return ++counter; } Counter();  Counter(int value); }
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(); }
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();  }