public void testEqualsWithDifferentEvents() throws Exception {
DefDescriptor<EventDef> eventDefDescriptor = DefDescriptorImpl.getInstance("fake:event2", EventDef.class);
Map<String, RegisterEventDef> eventDefs = ImmutableMap.of("fakey2",
(RegisterEventDef) vendor.makeRegisterEventDef(eventDefDescriptor, false, null));
String desc = getAuraTestingUtil().getNonce("test:cmp");
Location location = vendor.makeLocation("filename1", 5, 5, 0);
BaseComponentDef bcd1 = vendor.makeBaseComponentDefWithNulls(getDefClass(),
desc, null, null, null, location, null, null, null, null, null, null, null, false, false);
BaseComponentDef bcd2 = vendor.makeBaseComponentDefWithNulls(getDefClass(),
desc, null, eventDefs, null, location, null, null, null, null, null, null, null, false, false);
assertFalse("A BaseComponentDef shouldn't be equal with different registered events", bcd1.equals(bcd2));