@isTest private class LexCreateContactControllerTest { static testMethod void testMethod1() { RecordType recByoin = [select id from RecordType where IsActive = true and SobjectType= 'Account' limit 1]; Account hospital = new Account(Name = 'テスト病院'); hospital.RecordTypeId = recByoin.id; hospital.Site = 'テスト病院部門'; hospital.Alias_Name2__c = 'テスト病院別名'; insert hospital; lexCreateContactController.init(hospital.Id); lexCreateContactController.init('hospital.Id'); } }