@Test
public void testDivide() {

  final ColorRGBA clr1 = new ColorRGBA(1, -1, 2, -2);
  final ColorRGBA clr2 = clr1.divide(2.0f, null);
  final ColorRGBA clr2B = clr1.divide(2.0f, new ColorRGBA());
  assertEquals(new ColorRGBA(0.5f, -0.5f, 1.0f, -1.0f), clr2);
  assertEquals(new ColorRGBA(0.5f, -0.5f, 1.0f, -1.0f), clr2B);
  clr2.divideLocal(0.5f);
  assertEquals(new ColorRGBA(1.0f, -1.0f, 2.0f, -2.0f), clr2);
  final ColorRGBA clr3 = clr1.divide(clr2, null);
  final ColorRGBA clr3B = clr1.divide(clr2, new ColorRGBA());
  assertEquals(ColorRGBA.WHITE, clr3);
  assertEquals(ColorRGBA.WHITE, clr3B);
  clr1.divideLocal(clr2);
  assertEquals(ColorRGBA.WHITE, clr1);
}