Test added.
JavaDoc added.