@Test
public void getScale() throws InconsistentImageScale
{

   float scale = ProcessingUtils.getScale(1217, 15100, 512, 512);
   Assert.assertEquals((int) (1217 * scale), 145);
   Assert.assertEquals((int) (15100 * scale), 1803);
   scale = ProcessingUtils.getScale(100, 1000000, 512, 512);
   Assert.assertEquals((int) (100 * scale), 5);
   Assert.assertEquals((int) (1000000 * scale), 51200);
   scale = ProcessingUtils.getScale(1000000, 100, 512, 512);
   Assert.assertEquals((int) (100 * scale), 5);
   Assert.assertEquals((int) (1000000 * scale), 51200);
   scale = ProcessingUtils.getScale(7, 1217, 64, 64);
   Assert.assertEquals((int) (7 * scale), 4);
   Assert.assertEquals((int) (1217 * scale), 843);
   scale = ProcessingUtils.getScale(7, 1217, 64, 64);
   Assert.assertEquals((int) (7 * scale), 4);
   Assert.assertEquals((int) (1217 * scale), 843);
}