assertEquals("Initial state.", 0, pcl.eventCount());
buffer.getValue();
assertEquals("Reading initial value.", 0, pcl.eventCount());
buffer.setCommitTrigger(null);
buffer.setCommitTrigger(commitTrigger);
assertEquals("After commit trigger change.", 0, pcl.eventCount());
buffer.setValue("now buffering");
assertEquals("After setting the first value.", 1, pcl.eventCount());
buffer.setValue("still buffering");
assertEquals("After setting the second value.", 1, pcl.eventCount());