@Override
    public void validate() {
        if (pathPrefix == null || !pathPrefix.matches("\\w+")) {
            throw new IllegalArgumentException("Path is incorrect");
        }
    }
@Test(expected = IllegalArgumentException.class)
    public void shouldValidateWithWhiteCharacters() {
        new RestRouteSource("12312 234").validate();
    }