StringUtils { public static boolean isEmpty(String string) { return string == null || string.length() == 0; } private  StringUtils(); static boolean isEmpty(String string);  }
@SuppressWarnings("ConstantConditions") @Test public void testStringNull() throws Exception { boolean empty = StringUtils.isEmpty(null); assertTrue(empty); }
@Test public void testStringEmpty() throws Exception { boolean empty = StringUtils.isEmpty(""); assertTrue(empty); }
@Test public void testStringNotEmpty() throws Exception { boolean empty = StringUtils.isEmpty("test"); assertFalse(empty); }