### Question:
TeamRenderer implements ModelRenderer<Team, Integer> { @WorkerThread @Override public @Nullable TeamListElement renderFromModel(Team team, @RenderType Integer renderType) { int safeRenderType = renderType == null ? RENDER_BASIC : renderType; return new TeamListElement( team.getKey(), team.getTeamNumber(), team.getNickname(), team.getLocation(), safeRenderType == RENDER_DETAILS_BUTTON, safeRenderType == RENDER_MYTBA_DETAILS); } @Inject  TeamRenderer(APICache datafeed); @WorkerThread @Override @Nullable TeamListElement renderFromKey(String key, ModelType type, Integer args); @WorkerThread @Override @Nullable TeamListElement renderFromModel(Team team, @RenderType Integer renderType); static final int RENDER_BASIC; static final int RENDER_DETAILS_BUTTON; static final int RENDER_MYTBA_DETAILS; }### Answer:
@Test public void testRenderFromModelBasic() { TeamListElement element = mRenderer.renderFromModel(mTeam, TeamRenderer.RENDER_BASIC); assertTeamElement(element, false); }
@Test public void testRenderFromModelDetails() { TeamListElement element = mRenderer.renderFromModel(mTeam, TeamRenderer.RENDER_DETAILS_BUTTON); assertTeamElement(element, true); }