Employee employee = Employee.createEmployee(ec, "John", "Doe", Boolean.FALSE, company);
Role role1 = Role.createRole(ec);
employee.addToRoles(role1);
NSDictionary<String, Object> snapshot = employee.snapshot();
NSDictionary committedSnapshot = employee.committedSnapshot();
/*
* Snapshot should have same values as the eo and committed snapshot should be all
* null values as eo has not yet been saved.
*/