SingleColor extends IndexedColorMapper { @Override public Paint get(int value) { return getColor(); } SingleColor(Paint color); @Override Paint get(int value); Paint getColor(); void setColor(Paint color); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testGet() { SingleColor c = new SingleColor(Color.BLUE); for (int i = 0; i <= 10; i++) { assertEquals(Color.BLUE, c.get(i)); } }