AMJournalTransformerListener extends BaseTransformerListener { @Override public String onOutput( String output, String languageId, Map<String, String> tokens) { return _contentTransformerHandler.transform( ContentTransformerContentTypes.HTML, output); }  @Override String onOutput(
		String output, String languageId, Map<String, String> tokens);  }
@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); }