QuasiRandomColors extends IndexedColorMapper { public float[] getColorVariance() { return colorVariance; } QuasiRandomColors(); @Override Paint get(int index); float[] getColorVariance(); void setColorVariance(float[] colorVariance);  }
@Test public void testSerialization() throws IOException, ClassNotFoundException { QuasiRandomColors original = new QuasiRandomColors(); QuasiRandomColors deserialized = TestUtils.serializeAndDeserialize(original); assertEquals(original.getMode(), deserialized.getMode()); assertArrayEquals(original.getColorVariance(), deserialized.getColorVariance(), DELTA_FLOAT); }