@Test public void addOne() { counter.addOne(); }
public void addOne() { count++; System.out.println("[" + Thread.currentThread().getName() + "] count = " + count); }
Counter { public void addOne() { count++; System.out.println("[" + Thread.currentThread().getName() + "] count = " + count); } }
Counter { public void addOne() { count++; System.out.println("[" + Thread.currentThread().getName() + "] count = " + count); }  }
Counter { public void addOne() { count++; System.out.println("[" + Thread.currentThread().getName() + "] count = " + count); }  void addOne(); int getCount(); }
Counter { public void addOne() { count++; System.out.println("[" + Thread.currentThread().getName() + "] count = " + count); }  void addOne(); int getCount();  }