Small fixes

* Implements Mockito and Junit
* Should specify default charset according to the javadoc of getWriter()
method
* Should allow calling "getWriter" twice and return the same instance