final String firstName = "firstName";
final String lastName = "lastName";
Person personMock = createMockAndExpectNew(Person.class, firstName, lastName);
// Mock the creation of BusinessMessages
BusinessMessages businessMessagesMock = createMockAndExpectNew(BusinessMessages.class);
personServiceMock.create(personMock, businessMessagesMock);
expectLastCall().times(1);
expect(businessMessagesMock.hasErrors()).andReturn(true);
eventService.sendErrorEvent(personMock, businessMessagesMock);
expectLastCall().times(1);
replayAll();