JBBPIntCounter extends Number { public void set(final int value) { this.counter = value; } 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();  }
@Test public void testSet() { final JBBPIntCounter counter = new JBBPIntCounter(5); assertEquals(5, counter.get()); counter.set(345); assertEquals(345, counter.get()); }