@Test
public void testSubstringEndIndexEqualsToTailLength() throws Exception {

    Encoder encoder = new Encoder();
    String result = encoder.substring("E", 1, 1);
    Assertions.assertThat(result).isEmpty();
}