@Istest
public class NFM512ControllerTest {
   static testMethod void testMethod01(){
    // 0051000000DZLePAAX
        Oly_TriggerHandler.bypass(TenderInformationHandler.class.getName());
        RecordType rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Hp'];
        List<RecordType> rectDpt = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName IN ('Department_GI', 'Department_BF') order by DeveloperName desc];
        
        Account acc = new Account();
        acc.RecordTypeId = rectCo.Id;
        acc.Name = 'HP test1';
        acc.Assume_Change__c = true;
        insert acc;
        Account acc1 = new Account();
        acc1.RecordTypeId = rectCo.Id;
        acc1.Name = 'HP test1';
        acc1.Assume_Change__c = true;
        insert acc1;
        Account acc2 = new Account();
        acc2.RecordTypeId = rectCo.Id;
        acc2.Name = 'HP test1';
        acc2.Assume_Change__c = true;
        insert acc2;
        Account acc3 = new Account();
        acc3.RecordTypeId = rectCo.Id;
        acc3.Name = 'HP test1';
        acc3.Assume_Change__c = true;
        insert acc3;
        Account acc4 = new Account();
        acc4.RecordTypeId = rectCo.Id;
        acc4.Name = 'HP test1';
        acc4.Assume_Change__c = true;
        insert acc4;

        Tender_information__c Ten = new Tender_information__c();
        Ten.Name = 'TenTest01';
        Ten.Hospital__c = acc.Id;
        Ten.Hospital1__c = acc1.Id;
        Ten.Hospital2__c = acc2.Id;
        Ten.Hospital3__c = acc3.Id;
        Ten.Hospital4__c = acc4.Id;
        insert Ten;
        Tender_information__c Ten2 = new Tender_information__c();
        Ten2.Name = 'TenTest02';
        Ten2.Hospital__c = acc.Id;
        Ten2.Hospital1__c = acc1.Id;
        Ten2.Hospital2__c = acc2.Id;
        Ten2.Hospital3__c = acc3.Id;
        Ten2.Hospital4__c = acc4.Id;
        insert Ten2;
        Tender_information__c Ten3 = new Tender_information__c();
        Ten3.Name = 'TenTest03';
        Ten3.Hospital__c = acc.Id;
        Ten3.Hospital1__c = acc1.Id;
        Ten3.Hospital2__c = acc2.Id;
        Ten3.Hospital3__c = acc3.Id;
        Ten3.Hospital4__c = acc4.Id;
        insert Ten3;
        List<String> tenList = new List<String>();
        tenList.add(Ten.id);
        tenList.add(Ten2.id);
        tenList.add(Ten3.id);
        BatchIF_Transfer__c bt =new BatchIF_Transfer__c();
        bt.Table__c = 'NFM511Token512';
        // bt.LastModifiedDate = Datetime.valueOf('2020-09-25 08:18:08');
        bt.NFM501_Token__c='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzeXN0ZW1JZCI6IjEwMDEiLCJ1c2VyX25hbWUiOiIxMzY5MDAwMDAxMiIsInVzZXJOYW1lIjoiMTM2OTAwMDAwMTIiLCJsb2dpbk5vIjoiMWZiYzZjZDlkZTIxNGYwZWI3NzUzMTQ5ZDI5MTExM2IiLCJhdXRob3JpdGllcyI6WyIxMDAxNzMiXSwiY2xpZW50X2lkIjoiZUNsb3VkIiwicmVhbE5hbWUiOiLlpaXliKnlt7Tmlq8iLCJncmFudF90eXBlIjoicGFzc3dvcmQiLCJ0b2tlblZlcnNpb24iOm51bGwsInNjb3BlIjpbIjEwMDEiXSwidGVsIjoiMTM2OTAwMDAwMTIiLCJpZCI6IjE2ODkxNzM5NDQ3Mzg4MTE5MDYiLCJleHAiOjE2OTY5MzM1MDAsImp0aSI6Ijg3NjUzMWQ2LTcxMjctNDdiMC1iYzgxLTg4NmMzMDhiZWZiMCJ9.89M_1q6vrIOf1xQYD_omjx9qr49xrY31Hx_rVR5Blv8;1fbc6cd9de214f0eb7753149d291113b;1001';
        insert bt;
        Test.startTest();
        NFM512Controller.executeNotFuture(null,tenList);
        NFM512Controller.getZCToken();
        Test.stopTest();
   }
}