### Question:
AsyncIndexer implements Runnable { public void addFile(File2Index file2Index) { if (canAcceptFiles) { queue.offer(file2Index); } else { log.warn("Can't accept resource for indexing. Shutdown in progress: path=" + file2Index.path); } } protected  AsyncIndexer(); void addFile(File2Index file2Index); SolrClient getClient(); void run();  }### Answer:
@Test public void addFile() throws Exception { AsyncIndexer indexer = new AsyncIndexer(); byte[] data = RegistryUtils.encodeString("testing"); String mediaType = "application/json"; String path = "/_system/local/index"; int tenant = -12345; String tenantDomain = "fb.com"; AsyncIndexer.File2Index file2Index = new AsyncIndexer.File2Index(data, mediaType, path, tenant, tenantDomain); indexer.addFile(file2Index); }