# RestHighLevelClient mocking

**URL:** <https://discuss.elastic.co/t/resthighlevelclient-mocking/123027>\
**Category:** Elasticsearch\
**Created:** [March 8, 2018, 9:06am UTC](https://discuss.elastic.co/t/resthighlevelclient-mocking/123027 "2018-03-08T09:06:51Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![infodavid](https://avatars.discourse-cdn.com/v4/letter/i/ea5d25/32.png) [@infodavid](https://discuss.elastic.co/u/infodavid)\
**Post date:** [March 9, 2018, 5:35pm UTC](https://discuss.elastic.co/t/resthighlevelclient-mocking/123027/9 "2018-03-09T17:35:25Z")

</div>

Not exactly. Our DAO doesn't expose es objects. It's in charge of building the query and then the request by using some data from our model and logic. But the goal of this topic is not to discuss the conception of our indexing layer, just to get a way to implement unit tests without having an es installed.

---

_[View the full topic](https://discuss.elastic.co/t/resthighlevelclient-mocking/123027)._
