313314315316317318319320321322323
b1.setPaint(Color.red); assertNotNull(this.lastEvent); b2.setPaint(Color.green); assertNotNull(this.lastEvent); p.removeLayer(b2); this.lastEvent = null; b2.setPaint(Color.red); assertNull(this.lastEvent); }