@Override
protected void setupValidateReferences() throws Exception {
super.setupValidateReferences();
DefDescriptor<EventDef> superDesc = Aura.getDefinitionService().getDefDescriptor("aura:locationChange",
EventDef.class);
EventDef locationChangeEventDef = Mockito.mock(EventDef.class);
Mockito.doReturn(true).when(locationChangeEventDef).isInstanceOf(superDesc);
Mockito.doReturn(locationChangeEventDef).when(this.locationChangeEventDescriptor).getDef();
}