@Test
 public void trigger_isDisabled_nameNotEmpty_recurrencesNotEmpty_ReturnsFalse() {
   Trigger trigger = new Trigger();
   trigger.setName("name");
   trigger.setRecurrences("recurrences");
   assertFalse(trigger.isDisabled());
 }
 @Test
 public void trigger_isDisabled_nameNotEmpty_timeNotEmpty_ReturnsFalse() {
   Trigger trigger = new Trigger();
   trigger.setName("name");
   trigger.setRawTime("time");
   assertFalse(trigger.isDisabled());
 }
  @Test
  public void trigger_getFormattedDate_format_ReturnsTrue()
      throws NoSuchFieldException, IllegalAccessException {
    Trigger trigger = new Trigger();

    trigger.setRawDate("2015-06-03T15:36:14.400558Z");
    assertEquals(trigger.getFormattedDate(), "Jun 3 2015");
  }
  @Test
  public void trigger_getFormattedTime_format_ReturnsTrue()
      throws NoSuchFieldException, IllegalAccessException {
    Trigger trigger = new Trigger();

    trigger.setRawTime("07:00:00");
    assertEquals(trigger.getFormattedTime(), "7:00 AM");
  }
 @Test
 public void trigger_setter_id_ReturnsTrue() throws NoSuchFieldException, IllegalAccessException {
   Trigger trigger = new Trigger();
   int value = (int) Math.random();
   trigger.setId(value);
   final Field field = trigger.getClass().getDeclaredField("id");
   field.setAccessible(true);
   assertEquals(value, field.get(trigger));
 }
 @Test
 public void trigger_setter_date_ReturnsTrue()
     throws NoSuchFieldException, IllegalAccessException {
   Trigger trigger = new Trigger();
   String value = new String("trigger_date");
   trigger.setRawDate(value);
   final Field field = trigger.getClass().getDeclaredField("trigger_date");
   field.setAccessible(true);
   assertEquals(value, field.get(trigger));
 }
 @Test
 public void trigger_getter_recurrences_time_ReturnsTrue()
     throws NoSuchFieldException, IllegalAccessException {
   Trigger trigger = new Trigger();
   String value = new String("time");
   final Field field = trigger.getClass().getDeclaredField("time");
   field.setAccessible(true);
   field.set(trigger, value);
   final String result = trigger.getRawTime();
   assertEquals(value, result);
 }
 @Test
 public void trigger_getFormattedTime_empty_ReturnsTrue() {
   Trigger trigger = new Trigger();
   assertEquals(trigger.getFormattedTime(), "");
 }
 @Test
 public void trigger_isDisabled_nameNotEmpty_ReturnsTrue() {
   Trigger trigger = new Trigger();
   trigger.setName("name");
   assertTrue(trigger.isDisabled());
 }
 @Test
 public void trigger_getRRULE_recurrencesNotEmpty_ReturnsTrue() {
   Trigger trigger = new Trigger();
   trigger.setRecurrences("RRULE:FREQ=DAILY");
   assertEquals(trigger.getRRULE(), "FREQ=DAILY");
 }
 @Test
 public void trigger_getRRULE_recurrencesEmpty_ReturnsTrue() {
   Trigger trigger = new Trigger();
   assertEquals(trigger.getRRULE(), "");
 }
 @Test
 public void trigger_isDisabled_nameEmpty_ReturnsFalse() {
   Trigger trigger = new Trigger();
   assertFalse(trigger.isDisabled());
 }