@Test
 public void TestFindAndUpdateFilterRule() {
   FilterRule fr1 = new FilterRule("first", "The first rule");
   fr1.addPattern("123");
   fr1.addPattern("4*56");
   long ruleid = FilterRuleProvider.InsertRow(myDb, fr1);
   FilterRule fr2 = FilterRuleProvider.FindFilterRule(myDb, ruleid);
   assertEquals("The two rules are equals", fr1, fr2);
   FilterRule fr3 = new FilterRule("first", "The first rule updated");
   fr3.addPattern("123");
   FilterRuleProvider.UpdateFilterRule(myDb, ruleid, fr3);
   FilterRule fr4 = FilterRuleProvider.FindFilterRule(myDb, ruleid);
   assertEquals("The two rules are equals after update", fr3, fr4);
 }
 @Test
 public void TestDeleteFilterRuleById() {
   FilterRule fr1 = new FilterRule("first", "The first rule");
   fr1.addPattern("123");
   fr1.addPattern("4*56");
   long ruleid = FilterRuleProvider.InsertRow(myDb, fr1);
   FilterRuleProvider.DeleteFilterRule(myDb, ruleid);
   FilterRule fr2 = FilterRuleProvider.FindFilterRule(myDb, ruleid);
   assertNull("Rule deleted and not found", fr2);
 }