@Test public void testLayerInfoDefaultOrAlternateStyleChanged() throws Exception {
when(mockMediator.getLayerInfosFor(same(mockStyle))).thenReturn(
Collections.singleton(mockLayerInfo));
when(mockMediator.getLayerGroupsFor(same(mockStyle))).thenReturn(Collections.EMPTY_LIST);
CatalogPostModifyEventImpl postModifyEvent = new CatalogPostModifyEventImpl();
postModifyEvent.setSource(mockStyle);
listener.handlePostModifyEvent(postModifyEvent);
verify(mockMediator, times(1)).truncateByLayerAndStyle(eq(PREFIXED_RESOURCE_NAME),
eq(STYLE_NAME));
}