private static final String BUNDLE = "com.github.mustachejava.functions.translatebundle";
@Test
public void testPreLabels() throws MustacheException, IOException, ExecutionException, InterruptedException {
MustacheFactory c = new DefaultMustacheFactory(root);
Mustache m = c.compile("bundles.html");
StringWriter sw = new StringWriter();
Map<String, Object> scope = new HashMap<String, Object>();
scope.put("trans", BundleFunctions.newPreTranslate(BUNDLE, Locale.US));
scope.put("replaceMe", "replaced");
m.execute(sw, scope);
assertEquals(getContents(root, "bundles_pre_labels.txt"), sw.toString());
}