@Test
public void testSetEmptyPainters() {

    CompoundPainter<Object> painter = new CompoundPainter<Object>();
    // okay
    painter.setPainters();
    // fails
    painter.setPainters((Painter[]) null);
}