### Question:
JSStackTrace { public static String format(String message, ReadableArray stack) { StringBuilder stringBuilder = new StringBuilder(message).append(", stack:\n"); for (int i = 0; i < stack.size(); i++) { ReadableMap frame = stack.getMap(i); stringBuilder .append(frame.getString("methodName")) .append("@") .append(parseFileId(frame)); if (frame.hasKey("lineNumber") && !frame.isNull("lineNumber") && frame.getType("lineNumber") == ReadableType.Number) { stringBuilder .append(frame.getInt("lineNumber")); } else { stringBuilder .append(-1); } if (frame.hasKey("column") && !frame.isNull("column") && frame.getType("column") == ReadableType.Number) { stringBuilder .append(":") .append(frame.getInt("column")); } stringBuilder.append("\n"); } return stringBuilder.toString(); }  static String format(String message, ReadableArray stack);  }### Answer:
@Test public void testSymbolication() { JavaOnlyArray values = JavaOnlyArray.of( JavaOnlyMap.of("methodName", "method_from_bundle", "column", 11, "lineNumber", 7, "file", "Fb4aBundle.js"), JavaOnlyMap.of("methodName", "method_from_ram_bundle", "column", 13, "lineNumber", 18, "file", "199.js"), JavaOnlyMap.of("methodName", "method_from_ram_bundle_with_address", "column", 13, "lineNumber", 18, "file", "address at 199.js"), JavaOnlyMap.of("methodName", "method_from_segment", "column", 18, "lineNumber", 9, "file", "seg-1.js"), JavaOnlyMap.of("methodName", "method_from_segment_with_address", "column", 18, "lineNumber", 9, "file", "address at seg-1.js"), JavaOnlyMap.of("methodName", "method_from_ram_segment", "column", 20, "lineNumber", 10, "file", "seg-3_198.js"), JavaOnlyMap.of("methodName", "method_from_ram_segment_with_address", "column", 20, "lineNumber", 10, "file", "address at seg-3_198.js") ); String message = JSStackTrace.format("Error", values); Assert.assertEquals(message, "Error, stack:\n" + "method_from_bundle@7:11\n" + "method_from_ram_bundle@199.js:18:13\n" + "method_from_ram_bundle_with_address@199.js:18:13\n" + "method_from_segment@seg-1.js:9:18\n" + "method_from_segment_with_address@seg-1.js:9:18\n" + "method_from_ram_segment@seg-3_198.js:10:20\n" + "method_from_ram_segment_with_address@seg-3_198.js:10:20\n" ); }