### Question:
Count { public synchronized int get() { return this.value; }  synchronized void increment(); synchronized int get();  }### Answer:
@Test public void whenExecute2ThreadThen2() throws InterruptedException { final Count count = new Count(); Thread first = new ThreadCount(count); Thread second = new ThreadCount(count); first.start(); second.start(); first.join(); second.join(); assertThat(count.get(), is(2)); }