@Test
public void testInvert() {

    System.out.println("invert");
    Color c = new Color(40, 40, 40);
    Color expResult = new Color(215, 215, 215);
    Color result = ColorHelper.invert(c);
    assertEquals(expResult, result);
    //When the inverted color is too dark or too light, we are supposed to obtain some default yellow.
    c = new Color(5,5,5);
    expResult = new Color(ColorHelper.MAX_RGB_VALUE, ColorHelper.MAX_RGB_VALUE, 40);
    result = ColorHelper.invert(c);
    assertEquals(expResult, result);
    c = new Color(250,250,250);
    expResult = new Color(ColorHelper.MAX_RGB_VALUE, ColorHelper.MAX_RGB_VALUE, 40);
    result = ColorHelper.invert(c);
    assertEquals(expResult, result);
    
}