### Question:
ColorConversionImpl implements ColorConversion { @Override public RGB toRGB(CMYK cymk) { float[] input = new float[] { ((float) cymk.cyan) / 100, ((float) cymk.magenta) / 100, ((float) cymk.yellow) / 100, ((float) cymk.black) / 100 }; float[] output = cmykColorSpace.toRGB(input); RGB rgb = new RGB( Math.round(output[0] * 255), Math.round(output[1] * 255), Math.round(output[2] * 255) ); return rgb; }  @Override RGB toRGB(CMYK cymk); @Override RGB toRGB(LAB lab);  }### Answer:
@Test public void testCmyk() { ColorConversion.CMYK cmyk = new ColorConversion.CMYK(0,0,100,0); ColorConversion.RGB rgb = impl.toRGB(cmyk); assertEquals(255, rgb.red); assertEquals(241, rgb.green); assertEquals(0, rgb.blue); }
@Test public void testLab() { ColorConversion.LAB lab = new ColorConversion.LAB(54, -16, -36); ColorConversion.RGB rgb = impl.toRGB(lab); assertEquals(0, rgb.red); assertEquals(140, rgb.green); assertEquals(191, rgb.blue); }