Mustache m = c.compile("bundles.html");
StringWriter sw = new StringWriter();
Map<String, Object> scope = new HashMap<String, Object>();
scope.put("trans", BundleFunctions.newPostTranslateNullableLabel(BUNDLE, Locale.US));
// Intentionally leave off the replacement value
m.execute(sw, scope);
assertEquals(getContents(root, "bundles_nulllabels.txt"), sw.toString());
}
protected String getContents(File root, String file) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(root, file)),"UTF-8"));