@Test
	public void testGenerateCaptcha() throws IOException {
		String captchaKey = service.generateCaptchaKey();
		assertNotNull(captchaKey);
		byte[] captchaImage = service.generateCaptchaImage(captchaKey);
		assertTrue(captchaImage.length > 0);
		File image = new File("target/" + captchaKey + ".jpg");
		OutputStream output = null;
		try {
			output = new FileOutputStream(image);
			output.write(captchaImage);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (output != null)
				output.close();
		}
		assertTrue(image.exists() && image.length() > 0);
	}