ParseTextUtils { public static boolean equals(CharSequence a, CharSequence b) { return (a == b) || (a != null && a.equals(b)); } private  ParseTextUtils(); static boolean isEmpty(CharSequence text); static boolean equals(CharSequence a, CharSequence b);  }
@Test public void testEqualsNull() { assertTrue(ParseTextUtils.equals(null, null)); }
@Test public void testNotEqualsNull() { assertFalse(ParseTextUtils.equals("not null", null)); assertFalse(ParseTextUtils.equals(null, "not null")); }
@Test public void testEqualsString() { String same = "Hello, world!"; assertTrue(ParseTextUtils.equals(same, same)); assertTrue(ParseTextUtils.equals(same, same + "")); }
@Test public void testNotEqualsString() { assertFalse(ParseTextUtils.equals("grantland", "nlutsenko")); }