@SuppressWarnings("unchecked")
@Test public void testWithHandler() {

	// Arrange:
	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();
	// Act:
	intent.withHandler(handlerFirst);
	intent.withHandler(handlerSecond);
	// Assert:
	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));
}