Assert { public static void hasLength(CharSequence value, String comment, Object... params) { isTrue(StringUtils.isNotEmpty(value), comment, params); } private  Assert(); static void notNull(Object value, String comment, Object... params); static void hasLength(CharSequence value, String comment, Object... params); static void isTrue(boolean flag, String comment, Object... params); static void state(boolean flag, String comment, Object... params); static String message(String message, Object... params);  }
@Test public void hasLengthWithDummyValues() { hasLength("42", "Test comment"); assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { @Override public void call() { hasLength("", "Instance <%s> is empty", ""); } }).isInstanceOf(IllegalArgumentException.class).hasMessage("Instance <> is empty"); }