### Question:
EventRenderer implements ModelRenderer<Event, Boolean> { @WorkerThread @Override public @Nullable EventListElement renderFromModel(Event event, Boolean showMyTbaSettings) { boolean safeMyTba = showMyTbaSettings == null ? false : showMyTbaSettings; return new EventListElement( event.getKey(), event.getYear(), event.getShortName(), event.getDateString(), event.getLocation(), safeMyTba); } @Inject  EventRenderer(APICache datafeed); @WorkerThread @Override @Nullable EventListElement renderFromKey(String key, ModelType type, Boolean args); @WorkerThread @Override @Nullable EventListElement renderFromModel(Event event, Boolean showMyTbaSettings); @WorkerThread List<WebcastListElement> renderWebcasts(Event event); @WorkerThread void renderAlliances(List<EventAlliance> alliances, List<ListItem> destList);  }### Answer:
@Test public void testRenderFromModel() { EventListElement element = mRenderer.renderFromModel(mEvent, null); assertNotNull(element); assertEquals(element.getEventKey(), EVENT_KEY); }