  @Test(expected = ArtifactBuilder.InvalidArtifactCoordinateException.class)
  public void failsOnInvalidVersionRange()
      throws VersionRangeResolutionException, InvalidArtifactCoordinateException {

    Aether aether = Mockito.mock(Aether.class);

    // Using `anyRangeResult()` will ensure that rangeResult.highestVersion() == null.
    Mockito.when(aether.requestVersionRange(any()))
        .thenReturn(anyList());

    VersionResolver resolver = new VersionResolver(aether);
    resolver.resolveVersion("something", "something", "1.0");
  }