@Test
public void testCustomRuleName() throws Exception {

    adRowWithCustomRuleName(1,
                            "John is important",
                            "John");
    model.setData(data);
    String source = service.getSource(path,
                                      model);
    assertTrue("Expected custom rule name to be present",
               source.contains("rule \"John is important\"\n"));
}