@@ -0,0 +1,902 @@
+package net.mostlyoriginal.api.component.graphics;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Apublic class ColorTest %7B%0A%0A%09@Test%0A%09public void should_convert_hex1_to_r()%0A%09%7B%0A%09%09Color color = new Color(%22FF000000%22);%0A%09%09assertColor(color, 1f, 0f, 0f, 0f);%0A%09%7D%0A%0A%09@Test%0A%09public void should_convert_hex2_to_g()%0A%09%7B%0A%09%09Color color = new Color(%2200FF0000%22);%0A%09%09assertColor(color, 0f, 1f, 0f, 0f);%0A%09%7D%0A%0A%09@Test%0A%09public void should_convert_hex3_to_b()%0A%09%7B%0A%09%09Color color = new Color(%220000FF00%22);%0A%09%09assertColor(color, 0f, 0f, 1f, 0f);%0A%09%7D%0A%0A%09@Test%0A%09public void should_convert_hex4_to_a()%0A%09%7B%0A%09%09Color color = new Color(%22000000FF%22);%0A%09%09assertColor(color, 0f, 0f, 0f, 1f);%0A%09%7D%0A%0A%09protected void assertColor(Color color, float r, float g, float b, float a) %7B%0A%09%09Assert.assertEquals(r, color.r, 0.01f);%0A%09%09Assert.assertEquals(g, color.g, 0.01f);%0A%09%09Assert.assertEquals(b, color.b, 0.01f);%0A%09%09Assert.assertEquals(a, color.a, 0.01f);%0A%09%7D%0A%7D

Add test to color hex constructor.