Add example to Javadoc.