@Test
public void testImgIsNotAddedToAllowedContentIfAlreadyPresent()
	throws Exception {

	JSONObject originalJSONObject = JSONUtil.put(
		"allowedContent", "a[*](*); div(*); img[*](*){*};");
	JSONObject jsonObject = JSONFactoryUtil.createJSONObject(
		originalJSONObject.toJSONString());
	AMBlogsEditorConfigContributor amBlogsEditorConfigContributor =
		new AMBlogsEditorConfigContributor();
	amBlogsEditorConfigContributor.populateConfigJSONObject(
		jsonObject, _inputEditorTaglibAttributes, _themeDisplay,
		_requestBackedPortletURLFactory);
	JSONObject expectedJSONObject = JSONUtil.put(
		"allowedContent", "a[*](*); div(*); img[*](*){*};");
	JSONAssert.assertEquals(
		expectedJSONObject.toJSONString(), jsonObject.toJSONString(), true);
}