### Question:
ContentIntent extends BaseIntent<I> { @SuppressWarnings("unchecked") public I withHandler(@NonNull final ContentHandler handler) { if (handlers == null) this.handlers = new ArrayList<>(1); handlers.add(handler); return (I) this; }  @NonNull static String createContentFileTimeStamp(); @Nullable static File createContentFile(@NonNull final String fileName, @NonNull final String externalDirectoryType); @Nullable static File createContentFile(@NonNull final String fileName, @NonNull final File directory); abstract ContentIntent withDefaultHandlers(@NonNull Context context); I withHandlers(@NonNull final ContentHandler... handlers); @SuppressWarnings("unchecked") I withHandlers(@Nullable final List<ContentHandler> handlers); @SuppressWarnings("unchecked") I withHandler(@NonNull final ContentHandler handler); @SuppressWarnings("unchecked") @NonNull List<ContentHandler> handlers(); @SuppressWarnings("unchecked") I input(@Nullable final File file); @SuppressWarnings("unchecked") I input(@Nullable final Uri uri); @SuppressWarnings("unchecked") I output(@Nullable final File file); @SuppressWarnings("unchecked") I output(@Nullable final Uri uri); @Nullable Uri uri(); @SuppressWarnings("unchecked") I dataType(@NonNull @MimeType.Value final String type); @Nullable @MimeType.Value String dataType(); @Override boolean startWith(@NonNull final IntentStarter starter); @Override @NonNull Intent build(@NonNull final Context context); static final String CONTENT_FILE_TIME_STAMP_FORMAT; }### Answer:
@SuppressWarnings("unchecked") @Test public void testWithHandler() { final ContentIntent.ContentHandler handlerFirst = new ContentIntent.ContentHandler("TestHandler#1", new Intent()); final ContentIntent.ContentHandler handlerSecond = new ContentIntent.ContentHandler("TestHandler#2", new Intent()); final ContentIntent intent = new ContentIntentImpl(); intent.withHandler(handlerFirst); intent.withHandler(handlerSecond); final List<ContentIntent.ContentHandler> handlers = intent.handlers(); assertThat(handlers, is(not(nullValue()))); assertThat(handlers.size(), is(2)); assertThat(handlers.get(0), is(handlerFirst)); assertThat(handlers.get(1), is(handlerSecond)); }