bind(ReferenceResolver.class).to(GlobalReferenceResolver.class);
MapBinder<ReferenceIdent, ReferenceImplementation> binder = MapBinder
.newMapBinder(binder(), ReferenceIdent.class, ReferenceImplementation.class);
binder.addBinding(TestExpression.ident).toInstance(new TestExpression());
TransportPutIndexTemplateAction transportPutIndexTemplateAction = mock(TransportPutIndexTemplateAction.class);
bind(TransportPutIndexTemplateAction.class).toInstance(transportPutIndexTemplateAction);
bind(IndexService.class).toInstance(indexService);
}