@Test
public void testOnOutputTransformsTheOutput() throws Exception {

	String originalOutput = RandomTestUtil.randomString();
	String transformedOutput = RandomTestUtil.randomString();
	Mockito.when(
		_contentTransformerHandler.transform(
			ContentTransformerContentTypes.HTML, originalOutput)
	).thenReturn(
		transformedOutput
	);
	String newOutput = _amJournalTransformerListener.onOutput(
		originalOutput, _LANGUAGE_ID, _tokens);
	Assert.assertSame(transformedOutput, newOutput);
}