AuditSupport implements Serializable { public void removeAuditListener(AuditListener listener) { if (listener == null) return; if (listener instanceof AuditListenerProxy) { AuditListenerProxy proxy = (AuditListenerProxy) listener; removeAuditListener(proxy.getPropertyName(), proxy.getListener()); } else { this.map.remove(null, listener); } } AuditSupport(Object sourceBean); void addAuditListener(AuditListener listener); void addAuditListener(String propertyName, AuditListener listener); void removeAuditListener(AuditListener listener); void removeAuditListener(String propertyName, AuditListener listener); void fireAudit(String serviceName, List<GenericAuditEntity> auditEntities); void fireAudit(AuditEvent event); AuditListener[] getAuditListeners(); AuditListener[] getAuditListeners(String propertyName); boolean hasListeners(String propertyName);  }
@Test public void testRemoveNull() { AuditSupport auditSupport = new AuditSupport(this); AuditListener auditListener = null; auditSupport.removeAuditListener(auditListener); }