### Question:
JNDIBasedDataSourceRepository implements DataSourceRepository { public DataSource lookUp(String dsName) { validateInitialized(); validateDSName(dsName); if (!cachedNameList.contains(dsName)) { if (log.isDebugEnabled()) { log.debug("There is no Datasource with name " + dsName + " in JNDI Datasource Repository"); } return null; } if (log.isDebugEnabled()) { log.debug("Getting a DataSource with name : " + dsName + " from the JNDI tree."); } InitialContext context = getCachedInitialContext(dsName); return DataSourceFinder.find(dsName, context); }  void init(Properties jndiEnv); void register(DataSourceInformation information); void unRegister(String name); DataSource lookUp(String dsName); void clear(); boolean isInitialized();  }### Answer:
@Test public void testLookup() { Assert.assertNull("lookup non-existing datasource should return null", jndiBasedDataSourceRepository.lookUp(ERROR_DATASOURCE_NAME)); }