dataTable.setValue(1, 0, "yoav");
dataTable.setValue(1, 1, 24);
dataTable.setValue(2, 0, "niv");
dataTable.setValue(2, 1, 27);
PatternFormat formatter = PatternFormat.create("{0} is {1} years old. \\{2\\}");
int[] java = new int[]{0, 1};
JsArrayInteger js = ArrayHelper.toJsArrayInteger(java);
formatter.format(dataTable, js, 1);
assertEquals("hillel is 25 years old. {2}",
dataTable.getFormattedValue(0, 1));
assertEquals("yoav is 24 years old. {2}", dataTable.getFormattedValue(
1, 1));
}