### Question:
BidiFormatter { public boolean isRtlContext() { return mIsRtlContext; } 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 testIsRtlContext() { assertEquals(false, LTR_FMT.isRtlContext()); assertEquals(true, RTL_FMT.isRtlContext()); assertEquals(false, BidiFormatter.getInstance(Locale.ENGLISH).isRtlContext()); assertEquals(true, BidiFormatter.getInstance(true).isRtlContext()); }
@Test public void testBuilderIsRtlContext() { assertEquals(false, new BidiFormatter.Builder(false).build().isRtlContext()); assertEquals(true, new BidiFormatter.Builder(true).build().isRtlContext()); }