@Test
public void testFindByName() {

  List<AlertDefinitionEntity> definitions = dao.findAll();
  assertNotNull(definitions);
  AlertDefinitionEntity definition = definitions.get(2);
  AlertDefinitionEntity retrieved = dao.findByName(
      definition.getClusterId(), definition.getDefinitionName());
  assertEquals(definition, retrieved);
}