### Question:
TextUtil { public static boolean isRichText(String str) { Matcher m = RICH_TEXT_PATTERN.matcher(str); return m.find(); } private  TextUtil(); static T getFirstNonNull(T... values); static String getFirstNonEmpty(String... values); static T getFirstProperty(Resource resource, Class<T> klass, String... keys); static T getFirstProperty(ValueMap valueMap, Class<T> klass, String... keys); static boolean isRichText(String str);  }### Answer:
@Test public void testisRichText_PlainText() { boolean expResult = false; boolean result = TextUtil.isRichText("This is is not rich text"); assertEquals(expResult, result); }
@Test public void testisRichText_OpenCloseTag() { boolean expResult = true; boolean result = TextUtil.isRichText("<strong>This is strong text</strong>"); assertEquals(expResult, result); }