AlertService { String alertKey(Alert alert) { return alert.app + "/" + alert.action + "/" + alert.severity + "/" + alert.errorCode; } AlertService(AlertConfig config); void process(Alert alert);  }
@Test void alertKey() { Alert alert = alert(Severity.WARN, "NOT_FOUND", "trace"); alert.action = "action"; assertThat(service.alertKey(alert)).isEqualTo("website/action/WARN/NOT_FOUND"); }