### Question:
DefaultAsyncNotificationRenderer implements AsyncRenderer { @Override public List<String> getId() { String queryType; if (this.configuration.isCount()) { queryType = "count"; } else { queryType = "display"; } return Arrays.asList("notifications", queryType, this.cacheKey.replaceAll("/", "_")); }  void initialize(NotificationAsyncRendererConfiguration configuration); @Override List<String> getId(); @Override AsyncRendererResult render(boolean async, boolean cached); @Override boolean isAsyncAllowed(); @Override boolean isCacheAllowed(); @Override JobGroupPath getJobGroupPath();  }### Answer:
@Test public void getId() { this.asyncNotificationRenderer.initialize( new NotificationAsyncRendererConfiguration(notificationParameters, false)); assertEquals(Arrays.asList("notifications", "display", CACHE_KEY), this.asyncNotificationRenderer.getId()); this.asyncNotificationRenderer.initialize( new NotificationAsyncRendererConfiguration(notificationParameters, true)); assertEquals(Arrays.asList("notifications", "count", CACHE_KEY), this.asyncNotificationRenderer.getId()); }