@isTest private class MergeAgencyActivityControllerTest { static testMethod void testMethod1() { MergeAgencyActivityController controller = new MergeAgencyActivityController(); System.assertEquals(controller.startFlg, false); controller.startJob(); System.assertEquals(controller.startFlg, false); controller.newAgencyCode = 'ABC'; controller.oldAgencyCode = 'CDE'; controller.startJob(); System.assertEquals(controller.startFlg, true); } }