### Question:
DataSourceInformationRepository { public void setRepositoryListener(DataSourceInformationRepositoryListener listener) { if (listener == null) { throw new SynapseCommonsException("Provided DataSourceInformationRepositoryListener " + "instance is null", log); } if (this.listener != null) { throw new SynapseCommonsException("There is already a DataSourceInformationRepositoryListener " + "associated with 'DataSourceInformationRepository", log); } this.listener = listener; }  void configure(Properties configurationProperties); void addDataSourceInformation(DataSourceInformation dataSourceInformation); DataSourceInformation getDataSourceInformation(String name); DataSourceInformation removeDataSourceInformation(String name); Iterator<DataSourceInformation> getAllDataSourceInformation(); void setRepositoryListener(DataSourceInformationRepositoryListener listener); void removeRepositoryListener(); DataSourceInformationRepositoryListener getRepositoryListener();  }### Answer:
@Test public void testSetRepositoryListenerNull() { thrown.expect(SynapseCommonsException.class); thrown.expectMessage("Provided DataSourceInformationRepositoryListener instance is null"); repository.setRepositoryListener(null); }