}
@Test
public void shouldGetCollectionByFilterStatus() throws Exception {
// Given
CumulocityAlarmStatuses status = CumulocityAlarmStatuses.ACKNOWLEDGED;
AlarmFilter alarmFilter = new AlarmFilter().byStatus(status);
String alarmsByStatusUrl = ALARM_COLLECTION_URL + "?status=" + CumulocityAlarmStatuses.ACKNOWLEDGED.toString();
when(urlProcessor.replaceOrAddQueryParam(ALARM_COLLECTION_URL, alarmFilter.getQueryParams())).thenReturn(alarmsByStatusUrl);
AlarmCollectionImpl expected = new AlarmCollectionImpl(restConnector, alarmsByStatusUrl, DEFAULT_PAGE_SIZE);