try {
TemplatedSourceProcessor tsp = new TemplatedSourceProcessor();
tsp.processSource(marker, source);
assertFail();
} catch(TemplatedSourceException tse) {
TemplatedSourceProcessingException tspe = assertCast(tse, TemplatedSourceProcessingException.class);
assertEquals(tspe.errorString, errorType);
assertEquals(tspe.errorObject.toString(), errorObject);
}
}