### Question:
RestUrl { public boolean isValid() { return errorMessage == null; } private  RestUrl(VarType[] types, Object[] values, String errorMsg); boolean isValid(); String errorMessage(); T variable(String variableId);  }### Answer:
@Test public void whenNoVariablesAreProvidedThenOnlyThePathIsConsidered() { RestParser parser = parser("/users"); RestUrl url = parser.parse("http: assertThat(url, isValid()); assertTrue(url.isValid()); }