BlobRepositoryImpl implements BlobRepository { @Override public boolean contains(String id) throws AmbiguousIdException { prepare(); id = prepareId(id); return getFileFor(id) != null; }  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 misconfigurationContains() throws IOException, AmbiguousIdException { BlobRepositoryImpl instance=new BlobRepositoryImpl(); instance.contains(TEST_DATA_ID); }