Test Updated

may be we can improve using : http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/IOUtils.html#closeQuietly%28java.io.OutputStream%29