@@ -0,0 +1,700 @@
+package de.jeha.photo.mosaic;%0A%0Aimport org.junit.Test;%0A%0Aimport javax.imageio.ImageIO;%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * @author jenshadlich@googlemail.com%0A */%0Apublic class ColorCalculatorTest %7B%0A%0A    @Test%0A    public void testAverageColor() throws IOException %7B%0A        ColorCalculator.RGBA result =%0A                ColorCalculator.averageColor(ImageIO.read(new File(%22src/test/resources/sprd_logo_small.jpg%22)));%0A%0A        assertEquals(62.3, result.getR(), 0.1);%0A        assertEquals(193.2, result.getG(), 0.1);%0A        assertEquals(183.0, result.getB(), 0.1);%0A        assertEquals(0.0, result.getA(), 0.1); // no transparency%0A    %7D%0A%7D%0A

attach test case