@Test public void wrapJustBeforeWordBoundary() throws Exception { assertThat(wrap("word word", 4), equalTo("word\nword")); }