### Question:
CSVRepository implements Repository { @Override public void init(RepositoryContext repositoryContext) { if (!repositoryContext.getDefaultAclMode().isEnabled()) { throw new InvalidConfigurationException( "defaultAcl.mode must be set, and to a value other than \"none\""); } csvFileManager = CSVFileManager.fromConfiguration(); } 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 testGetAllDocs_AclModeNONE() throws IOException, InterruptedException { setupConfig.initConfig(new Properties()); RepositoryContext localMockRepositoryContext = mock(RepositoryContext.class); when(localMockRepositoryContext.getDefaultAclMode()).thenReturn(DefaultAclMode.NONE); CSVRepository csvRepository = new CSVRepository(); thrown.expect(InvalidConfigurationException.class); csvRepository.init(localMockRepositoryContext); }