### Question:
AutoFixPlanManager { public AutoFixPlan createPlan(String ruleId, String issueId, String resourceId,String docId, String resourceType,int numberOfNotificatons, int waitTimeBeforeAutoFix) { AutoFixPlan autoFixPlan = createTransientPlan(ruleId, issueId, resourceId,docId,resourceType,numberOfNotificatons, waitTimeBeforeAutoFix); return autoFixPlan; }  AutoFixPlan createPlan(String ruleId, String issueId, String resourceId,String docId, String resourceType,int numberOfNotificatons, int waitTimeBeforeAutoFix); AutoFixPlan createTransientPlan(String ruleId, String issueId, String resourceId,String docId,String resourceType,int numberOfNotificatons, int waitTimeBeforeAutoFix); void publishPlan(Map<String, String> ruleParam,AutoFixPlan plan); void updatePlanItemStatusAndPublish(String planId,int itemIndex,Map<String, String> ruleParam , String parentId, Status status); AutoFixPlan updatePlanItemStatus(AutoFixPlan plan,Integer itemIndex,Status status); AutoFixPlan getAutoFixPalnForResource(String resourceId,Map<String, String> ruleParam); void suspendPlan(AutoFixPlan plan, Map<String, String> ruleParam); void synchronizeAndRepublishAutoFixPlan(AutoFixPlan plan,String resourceId , Map<String, String> ruleParam); void releaseResourfes();  }### Answer:
@Test public void testcreateTransientPlanNotNull(){ AutoFixPlan plan = new AutoFixPlanManager().createPlan( "ruleId", "issueId", "resourceId","docId","resourcetype", numberOfNotifications, 48); assertNotNull(plan); }
@Test public void testcreateTransientPlanVerify(){ AutoFixPlan plan = new AutoFixPlanManager().createPlan( "ruleId", "issueId", "resourceId","docId","resourcetype", numberOfNotifications, 48); assertEquals(numberOfNotifications.intValue(),plan.getPlanItems().size() - 1); }
@Test public void testcreateTransientPlanVerifyAction(){ AutoFixPlan plan = new AutoFixPlanManager().createPlan( "ruleId", "issueId", "resourceId","docId","resourcetype", numberOfNotifications, 48); List<PlanItem> items = plan.getPlanItems().stream().filter(obj->obj.getAction().equals(AutoFixAction.AUTOFIX_ACTION_FIX)).collect(Collectors.toList()); assertTrue(items.get(0).getAction().equals(AutoFixAction.AUTOFIX_ACTION_FIX)); }