@Test
public void shouldNotAcceptInvalidCharacters() {

    assertThat(pathHelper.isPathContainingIllegalCharacters("somepath../"), is(false));
    assertThat(pathHelper.isPathContainingIllegalCharacters("../somepath"), is(true));
    assertThat(pathHelper.isPathContainingIllegalCharacters("somepath/../"), is(true));
    assertThat(pathHelper.isPathContainingIllegalCharacters(null), is(true));
}