BasicChangeManager implements ChangeManager { @Override public void addChangeListener(ChangeListener listener) { ArgumentChecker.notNull(listener, "listener"); _listeners.add(listener); } BasicChangeManager(); @Override void addChangeListener(ChangeListener listener); @Override void removeChangeListener(ChangeListener listener); @Override void entityChanged(ChangeType type, ObjectId oid, Instant versionFrom, Instant versionTo, Instant versionInstant); @Override String toString();  }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_add_null() { _changeManager.addChangeListener(null); }