.withStatus("ACKNOWLEDGED")
.withSource(mo2).build());
// When
AlarmFilter acknowledgedFilter = new AlarmFilter().byStatus(CumulocityAlarmStatuses.valueOf("ACKNOWLEDGED")).bySource(mo1);
AlarmCollectionRepresentation acknowledgedAlarms = alarmApi.getAlarmsByFilter(acknowledgedFilter).get();
// Then
List<AlarmRepresentation> alarms = acknowledgedAlarms.getAlarms();
assertThat(alarms.size(), is(equalTo(1)));
assertThat(alarms.get(0).getStatus(), is("ACKNOWLEDGED"));
assertThat(alarms.get(0).getSource().getId(), is(mo1.getId()));
}