@Test
public void testMapNewSubscriptionTypeIsMailIdIsNull() throws Exception {

    Subscription subscription = this.defaultSubscription;
    assertNotNull(subscription.getId());
    subscription.setType(SubscriptionType.HIPCHAT);
    Subscription alarm = subscriptionMapper.mapNewSubscriptionFormToSeyren(subscription);
    assertNull(alarm.getId());
    assertEquals(SubscriptionType.EMAIL, subscription.getType());
}