@Test(expected = IllegalArgumentException.class)
public void should_truncate_string_by_double_colon_when_target_level_equals_0() {

    String result = TextUtils.truncateByDoubleColons("L0::L1::L2::L3", 0);
    assertThat(result, is("L2::L3"));
}