	@Test
	public void findWhitespace() {

		final String s = "Bla\n\r\n\r \thello \r\r\n\nblabla";
		Assert.assertEquals(3, StringUtil.findWhitespace(s));
		for (int i = 0; i < s.length(); i++) {
			final int expected = i <= 3 ? 3 : i < 9 ? i : i < 14 ? 14 : i < s.length() - 6 ? i : s.length();
			Assert.assertEquals(expected, StringUtil.findWhitespace(s, i));
		}
	}