    @Test
    public void testToFile() throws IOException {

        final String oldFile = System.getProperty("user.dir") + "/src/test/resources/images/lion2.jpg";
        final String newFile = System.getProperty("user.dir") + "/src/test/resources/images/lion2_watermark";
        final String warterFile = System.getProperty("user.dir") + "/src/test/resources/images/wartermark.png";

        ImageParamDTO params = new ImageParamDTO();
        params.setFormat("png");
        params.setWaterMark(new ImageParamDTO.WaterMark(9, warterFile, 0.6f));
        ImageUtil.toFile(oldFile, newFile, params);
    }