@Test
public void testDeleteSubscription() {

    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.deleteSubscription("alarmId","subscriptionId"));
}