@Test(expected=IllegalArgumentException.class)
public void testValidateDensity() {

	TesseractOCRConfig config = new TesseractOCRConfig();
	config.setDensity(300);
	config.setDensity(400);
	assertTrue("Couldn't set valid values", true);
	config.setDensity(1);
}