@Test
public void testTranslateJSON() {

	ResourceBundleLoader resourceBundleLoader = Mockito.mock(
		ResourceBundleLoader.class);
	Package pkg = FrontendTokenDefinitionImplTest.class.getPackage();
	Mockito.when(
		resourceBundleLoader.loadResourceBundle(LocaleUtil.ENGLISH)
	).thenReturn(
		ResourceBundle.getBundle(
			pkg.getName() + ".dependencies.Language", LocaleUtil.ENGLISH)
	);
	FrontendTokenDefinitionImpl frontendTokenDefinitionImpl =
		new FrontendTokenDefinitionImpl(
			_FRONTEND_TOKEN_DEFINITION_JSON, new JSONFactoryImpl(),
			resourceBundleLoader, "theme_id");
	String json = frontendTokenDefinitionImpl.translateJSON(
		LocaleUtil.ENGLISH);
	Assert.assertEquals(_TRANSLATED_FRONTEND_TOKEN_DEFINITION_JSON, json);
}