    @Test
    public void testGetColor() {

        // set java.awt.headless so that we don't activate the awt bug (see issue #982)
        System.setProperty("java.awt.headless", "true");
        assertEquals("", ColorUtil.RgbToAnsi("red", ColorSetting.OFF));
        assertEquals("\u001b[31m", ColorUtil.RgbToAnsi("red", ColorSetting.ON));
    }