@Test
public void testFindById() {

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