@Test
public void testDeleteAlarm() {

    ResponseEntity<Object> response = new ResponseEntity(HttpStatus.OK);
    when(restTemplate.exchange(anyString(), Mockito.<HttpMethod> eq(HttpMethod.DELETE), Mockito.<HttpEntity<?>> any(), Matchers.<Class<Object>>any())).thenReturn(response);
    assertTrue(repository.deleteAlarm("id"));
}