@Test
public void testLargeCollectionToString() {

    List<Integer> list = new ArrayList<Integer>();
    for (int i = 0; i < 1000; i++) {
        list.add(123456);
    }
    String result = Strings.toString(list);
    String expectedTail = "] (126:1000)";
    assertThat(result.endsWith(expectedTail), is(true));
    assertThat(result.length(), lessThan(Strings.LOG_CONTENT_MAX_LENGTH + 20));
}