### Question:
GuardedQueue { public synchronized void put(Integer e) { LOGGER.info("putting"); sourceList.add(e); LOGGER.info("notifying"); notify(); } GuardedQueue(); synchronized Integer get(); synchronized void put(Integer e);  }### Answer:
@Test public void testPut() { var g = new GuardedQueue(); g.put(12); assertEquals(Integer.valueOf(12), g.get()); }
@Test public void testPut() { GuardedQueue g = new GuardedQueue(); g.put(12); assertEquals(Integer.valueOf(12), g.get()); }