@Test
public void searchAlarm() throws Exception {

    Alarm searchAlarm = new Alarm();
    searchAlarm.setTarget("keepLastValue(perf.MPD.mpdsimulation.allRequests.ok.count)");
    searchAlarm.setWarn(BigDecimal.valueOf(100));
    searchAlarm.setError(BigDecimal.valueOf(200));
    Alarm foundAlarm = alarmService.searchAlarm(searchAlarm);
    assertNotNull(foundAlarm);
    assertEquals(TestUtils.DEFAULT_ALARM_ID, foundAlarm.getId());
}