recordType = typeMgr.createRecordType(recordType);
Record record = repository.newRecord();
record.setRecordType(typeName);
record.setField(fieldName, "foo");
record = repository.create(record);
assertEquals("foo-create-hook", record.getField(fieldName));
record = repository.read(record.getId());
assertEquals("foo-create-hook", record.getField(fieldName));