*
* @throws Exception
*/
@Test
public void testFlatLabelEvents() throws Exception {
LabelListener labelListener = null;
try {
/* Add */
ILabel label = fFactory.createLabel(null, "Label Name");
final boolean labelEvents[] = new boolean[3];
final LabelReference labelReference[] = new LabelReference[1];
labelListener = new LabelListener() {
public void entitiesAdded(Set<LabelEvent> events) {
for (LabelEvent event : events) {
assertTrue("Expected this Event to be Root Event", event.isRoot());
labelEvents[0] = true;
}