### Question:
JBBPIntCounter extends Number { public int getAndIncrement() { return this.counter++; } JBBPIntCounter();  JBBPIntCounter(final int startValue); void set(final int value); void inc(); void dec(); int getAndIncrement(); int incrementAndGet(); int getAndDecrement(); int decrementAndGet(); int get(); int getAndAdd(final int value); @Override int intValue(); @Override long longValue(); @Override float floatValue(); @Override double doubleValue();  }### Answer:
@Test public void testGetAndIncrement() { final JBBPIntCounter counter = new JBBPIntCounter(); assertEquals(0, counter.getAndIncrement()); assertEquals(1, counter.getAndIncrement()); }