EasyMock.reset(mockEventBus, mockProjService, securityService, dataService);
Attribute newAttribute = new Attribute();
newAttribute.setParentProjectId(42L);
mockProjService.createAttribute(EasyMock.eq(newAttribute), EasyMock.isA(AsyncCallback.class));
EasyMockUtils.setLastAsyncCallbackSuccessWithResult(1L);
mockEventBus.fireEvent(EasyMock.isA(ProjectElementAddedEvent.class));
// Attributes queried due to the view refresh.