@Test
void should_throw_exception_when_url_is_malformed() {

    Path osmFile = Mockito.mock(Path.class);
    String malformedUrl = "x+y";
    assertThatExceptionOfType(RoutingEngineException.class)
            .isThrownBy(() -> RoutingConfig.downloadOsmFile(malformedUrl, osmFile))
            .withMessageContaining("malformed");
}