f.set(manifestation, new AbbreviatingTableLabelingAlgorithm() {
@Override
public void setContextLabels(String... s) { naming = s[0]; }
});
NamingContext nullContext = Mockito.mock(NamingContext.class);
NamingContext blankContext = Mockito.mock(NamingContext.class);
NamingContext specificContext = Mockito.mock(NamingContext.class);
PropertyChangeEvent event = Mockito.mock(PropertyChangeEvent.class);
Mockito.when(nullContext.getContextualName()).thenReturn(null);
Mockito.when(blankContext.getContextualName()).thenReturn("");
Mockito.when(specificContext.getContextualName()).thenReturn("Specific");
manifestation.setNamingContext(nullContext);
manifestation.updateMonitoredGUI(event);
Assert.assertEquals(naming, "");