@Test
public void fromJavaNetUrlUnsupportedScheme_checked() throws Exception {

    try {
        HttpUrl.getChecked("mailto:user@example.com");
        fail();
    } catch (MalformedURLException e) {
    }
}