public void noViewName() {
checkPaths("//path", "", "/path");
}
private void checkPaths(final String path, final String expectedViewName, final String expectedRemainingPath) {
final ViewNameParser viewNameParser = new ViewNameParser(path);
assertThat(viewNameParser.getViewName(), is(equalTo(expectedViewName)));
assertThat(viewNameParser.getRemainingPath(), is(equalTo(expectedRemainingPath)));
}