### Question:
Converter { @SuppressWarnings("unchecked") public final void addMapping(final DisplayItem pDisplayItem) { final Type type = pDisplayItem.getClass().getGenericInterfaces()[0]; final Class<T> tClass = (Class<T>) ((ParameterizedType) type).getActualTypeArguments()[1]; mMapping.put((Class<? extends MarkdownItem>) tClass, pDisplayItem); }  @SuppressWarnings("unchecked") final void addMapping(final DisplayItem pDisplayItem); @SuppressWarnings("unchecked") List<T> convert(final List<MarkdownItem> pMarkdownItems, InlineConverter pInlineConverter);  }### Answer:
@Test public void addMapping() { MockDisplayItem displayItem = new MockDisplayItem(); sut.addMapping(displayItem); }