DefaultAlertEntityHolder implements AlertEntityHolder { @Override public ALERT_TYPE getAlertType() { return alertType; } DefaultAlertEntityHolder(ALERT_TYPE alertType); @Override ALERT_TYPE getAlertType(); @Override synchronized void hold(AlertEntity alertEntity); @Override boolean remove(AlertEntity alertEntity); @Override synchronized void removeIf(Predicate<AlertEntity> predicate); @Override synchronized boolean hasAlerts(); @Override List<AlertEntity> allAlerts(); @Override String toString();  }
@Test public void getAlertType() { Assert.assertEquals(type, holder.getAlertType()); }