Mockito.when(mockTreeNode.getParentTree()).thenReturn(mockTree);
Mockito.when(mockTree.getModel()).thenReturn(mockModel);
Mockito.when(mockComponent.getComponents()).thenReturn(Collections.<AbstractComponent>emptyList());
PlatformAccess access = new PlatformAccess();
access.setPlatform(new MockPlatform());
nodeViewManifestation.addMonitoredGUI(mockTreeNode);
nodeViewManifestation.updateMonitoredGUI();
Assert.assertTrue(label.getText().equals(mockComponent.getExtendedDisplayName()));
}