}
@Test
public void shouldUpdateAlarmRep() throws SDKException {
//Given
AlarmRepresentation alarmToUpdate = new AlarmRepresentation();
alarmToUpdate.setId(new GId("global_id"));
alarmToUpdate.setStatus("STATUS");
AlarmRepresentation alarmRep = new AlarmRepresentation();
when(
restConnector.put(eq(ALARM_COLLECTION_URL + "/global_id"), eq(AlarmMediaType.ALARM),
argThat(hasOnlyUpdatableFields(alarmToUpdate)))).thenReturn(alarmRep);
//When
AlarmRepresentation updated = alarmApi.updateAlarm(alarmToUpdate);
//Then
assertThat(updated, sameInstance(alarmRep));
}