GWT-548: add tests and documentation.