### Question:
BidiFormatter { public boolean isRtl(String str) { return isRtl((CharSequence) str); } BidiFormatter(boolean isRtlContext, int flags, TextDirectionHeuristicCompat heuristic); static BidiFormatter getInstance(); static BidiFormatter getInstance(boolean rtlContext); static BidiFormatter getInstance(Locale locale); boolean isRtlContext(); boolean getStereoReset(); boolean isRtl(String str); boolean isRtl(CharSequence str); String unicodeWrap(String str, TextDirectionHeuristicCompat heuristic, boolean isolate); CharSequence unicodeWrap(CharSequence str, TextDirectionHeuristicCompat heuristic,
            boolean isolate); String unicodeWrap(String str, TextDirectionHeuristicCompat heuristic); CharSequence unicodeWrap(CharSequence str, TextDirectionHeuristicCompat heuristic); String unicodeWrap(String str, boolean isolate); CharSequence unicodeWrap(CharSequence str, boolean isolate); String unicodeWrap(String str); CharSequence unicodeWrap(CharSequence str);  }### Answer:
@Test public void testIsRtl() { assertEquals(true, BidiFormatter.getInstance(true).isRtl(HE)); assertEquals(true, BidiFormatter.getInstance(false).isRtl(HE)); assertEquals(false, BidiFormatter.getInstance(true).isRtl(EN)); assertEquals(false, BidiFormatter.getInstance(false).isRtl(EN)); }