@Test
public void testUpdateSubscription() {

    Subscription subscription = new Subscription();
    subscription.setId("subscriptionId");
    doNothing().when(restTemplate).put(anyString(),anyObject(),Matchers.<Class<Object>>any());
    repository.updateSubscription(subscription,"alarmId");
    verify(restTemplate).put(DEFAULT_SEYREN_URL + SeyrenRepository.API_ALARMS+"/alarmId/subscriptions/subscriptionId", subscription, String.class);
}