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.
securityService.hasEditAccess(EasyMock.eq(42L), EasyMock.isA(AsyncCallback.class));
EasyMockUtils.setLastAsyncCallbackSuccessWithResult(false);
mockProjService.getProjectAttributes(EasyMock.eq(42L), EasyMock.isA(AsyncCallback.class));