@Test
public void testAddSubscription_ok() {

    ResponseEntity<Object> response = new ResponseEntity(HttpStatus.OK);
    Subscription subscription = new Subscription();
    when(restTemplate.postForEntity(anyString(),anyObject(),Matchers.<Class<Object>>any())).thenReturn(response);
    repository.addSubscription(subscription,"alarmid");
    verify(restTemplate).postForEntity(DEFAULT_SEYREN_URL + SeyrenRepository.API_ALARMS+"/alarmid/subscriptions/", subscription, Object.class);
}