protected AtomicReaderContext readerContext;
private IndexWriter writer;
@Before
public void prepare() throws Exception {
ifd = new IndexFieldDataService(new Index("test"), new NoneCircuitBreakerService());
ifd.setIndexService(new StubIndexService(null));
MapperService mapperService = mock(MapperService.class);
FieldMapper fieldMapper = mock(FieldMapper.class);
when(fieldMapper.names()).thenReturn(fieldName());