@Test
public void testNotify() {

    Metric metric = Mockito.mock(Metric.class);
    MetricNotificationService metricNotificationService = new MetricNotificationService(metric);
    Map<String, String> details = new HashMap<>();
    details.put("key1", "attribute1");
    details.put("key2", "attribute2");
    details.put("key3", "attribute3");
    Notification notification = new Notification();
    notification.setDetails(details);
    notification.setType("testType");
    boolean notify = metricNotificationService.notify(notification);
    assertTrue(notify);
    String[] expectedAttributes = new String[] {
            "key1", "attribute1",
            "key2", "attribute2",
            "key3", "attribute3",
            "notif_type", "testType"
    };
    Mockito.verify(metric, Mockito.times(1))
            .increment("athenz_notification", expectedAttributes);
}