### Question:
CSVRepository implements Repository { @Override public boolean exists(Item item) throws RepositoryException { throw new UnsupportedOperationException("Method not yet supported."); } CSVRepository(); @Override void init(RepositoryContext repositoryContext); @Override CheckpointCloseableIterable<ApiOperation> getIds(byte[] checkpoint); @Override CheckpointCloseableIterable<ApiOperation> getChanges(byte[] checkpoint); @Override ApiOperation getDoc(Item item); @Override boolean exists(Item item); @Override void close(); @Override CheckpointCloseableIterable<ApiOperation> getAllDocs(byte[] checkpoint);  }### Answer:
@Test public void exists_throwsException() throws Exception { CSVRepository csvRepository = new CSVRepository(); thrown.expect(UnsupportedOperationException.class); csvRepository.exists(null); }