BlobRepositoryImpl implements BlobRepository { @Override public Set<String> idSet() { prepare(); Set<String> result=new HashSet<>(); File[] subDirs = baseDirectory.listFiles(MatchingDirectoriesFileFilter.INSTANCE); if(subDirs == null) { return result; } for(File current : subDirs) { File[] contained=current.listFiles(MatchingFilesFileFilter.INSTANCE); if(contained == null) { continue; } for(File curBlob:contained) { result.add(current.getName()+curBlob.getName()); } } if(logger.isDebugEnabled()) logger.debug("Returning idSet {}.", result); return result; }  boolean isCaseSensitive(); void setCaseSensitive(boolean caseSensitive); boolean isValidating(); void setValidating(boolean validating); File getBaseDirectory(); void setBaseDirectory(File baseDirectory); @Override String put(InputStream input); @Override String put(byte[] bytes); @Override InputStream get(String id); @Override boolean delete(String id); @Override boolean contains(String id); @Override long sizeOf(String id); @Override Set<String> idSet(); @Override String toString();  }
@Test(expected = IllegalStateException.class) public void misconfigurationIdSet() throws IOException, AmbiguousIdException { BlobRepositoryImpl instance=new BlobRepositoryImpl(); instance.idSet(); }