typeManager.newRecordType(recordTypeId, name);
expectLastCall().andReturn(recordType);
SchemaId fieldTypeId1 = new SchemaIdImpl(UUID.randomUUID());
SchemaId fieldTypeId2 = new SchemaIdImpl(UUID.randomUUID());
FieldTypeEntryImpl fieldTypeEntry1 = new FieldTypeEntryImpl(fieldTypeId1, true);
FieldTypeEntryImpl fieldTypeEntry2 = new FieldTypeEntryImpl(fieldTypeId2, false);
typeManager.newFieldTypeEntry(fieldTypeId1, true);
expectLastCall().andReturn(fieldTypeEntry1);
typeManager.newFieldTypeEntry(fieldTypeId2, false);
expectLastCall().andReturn(fieldTypeEntry2);