PlanStore { public void deletePlan(String planName) throws TexeraException { Tuple plan = getPlan(planName); if (plan == null) { return; } IDField idField = (IDField) plan.getField(SchemaConstants._ID); DataWriter dataWriter = relationManager.getTableDataWriter(PlanStoreConstants.TABLE_NAME); dataWriter.open(); dataWriter.deleteTupleByID(idField); dataWriter.close(); } private  PlanStore(); synchronized static PlanStore getInstance(); void createPlanStore(); void destroyPlanStore(); IDField addPlan(String planName, String description, String logicalPlanJson); Tuple getPlan(String planName); DataReader getPlanIterator(); void deletePlan(String planName); void updatePlanDescription(String planName, String description); void updatePlan(String planName, String logicalPlanJson); void updatePlan(String planName, String description, String logicalPlanJson);  }
@Test public void testDeletePlan() throws TexeraException { String planName1 = "plan1"; String planName2 = "plan2"; planStore.addPlan(planName1, "basic dictionary source plan", logicalPlanJson1); planStore.addPlan(planName2, "basic keyword source plan", logicalPlanJson2); planStore.deletePlan(planName1); Tuple returnedPlan = planStore.getPlan(planName1); Assert.assertNull(returnedPlan); }