@Test
public void testFindByIds() {

  List<AlertDefinitionEntity> definitions = dao.findAll();
  List<Long> ids = new ArrayList<Long>();
  ids.add(definitions.get(0).getDefinitionId());
  ids.add(definitions.get(1).getDefinitionId());
  ids.add(99999L);
  definitions = dao.findByIds(ids);
  assertEquals(2, definitions.size());
}