* of particular translations in the form snippet.
*/
private void testEscaping(Locale locale, ResourceBundle bundle,
String bundleKey, String bundleValue, String absentValue,
String escapedValue) {
ConfigureResponse response = type.getConfigForm(locale);
assertEquals("", response.getMessage());
// Internal check to make sure the target French translation is still there.
assertEquals(bundleValue, bundle.getString(bundleKey));
String snippet = response.getFormSnippet();
assertFalse("Snippet contains " + absentValue + ": " + snippet,
snippet.contains(absentValue));
assertTrue("Snippet does not contain " + bundleValue + ": " + snippet,
snippet.contains(escapedValue));
}