@Test
public void testGetG() throws Exception {

    Assert.assertEquals(1, ARGB.getG(-1), 0.1);
    Assert.assertEquals(0, ARGB.getG(0), 0.1);
    Assert.assertEquals(1, ARGB.getG(0x0000FF00), 0.1);
    Assert.assertEquals(0, ARGB.getG(0xFFFF00FF), 0.1);
}