{
panel.setText("Original Text", parent);
Layouts.on(panel, panel.getDefaultLayout());
List<StyleObserver> observers = panel.getStyle().getObservers();
assertEquals(1, observers.size());
StyleObserver observer = observers.get(0);
Layouts.on(panel, panel.getDefaultLayout());
List<StyleObserver> newObservers = panel.getStyle().getObservers();
assertEquals(1, newObservers.size());
StyleObserver newObserver = newObservers.get(0);
assertNotSame(newObserver, observer);
}