elasticsearch/elasticsearch — pull request #5228 by Paikan (2014-02-22 18:22:01+00:00)
Title: Minor improvements to Table class and add tests

This pull request includes the following changes:
- Replace `ElasticsearchIllegalArgumentException` with `ElasticsearchIllegalStateException` which seems more appropriate.
- Add a few more preliminary checks to some methods. Some may be too pedantic and may not worth it. Feel free to remove those
if you think the little overhead is not justified.
- Add unit tests for the `Table` class.