   @Test
   public void testLowBatteryAdded() {

      replay();

      Map<String, Date> lowBattery = ImmutableMap.of(lock.getAddress().getRepresentation(), new Date());
      model.setLowBatteryNotificationSent(lowBattery);
      generator.handleModelChanged(context, model, scratchPad);
      String key = AlertKeys.key(SmartHomeAlert.ALERTTYPE_DEV_WARN_BATTERY_LOW, lock.getAddress());
      assertScratchPadHasAlert(key);

      SmartHomeAlert expected = createAlert();
      assertAlert(expected, scratchPad.getAlert(key));
   }