/*
  * Validate a URL can be read
  */
 @Test(enabled = true)
 public void test10() throws Exception {
   URL u = new URL("http://www.oracle.com/");
   ;
   Object[] values = {u};
   SQLInputImpl sqli = new SQLInputImpl(values, map);
   URL u2 = sqli.readURL();
   assertTrue(u2.equals(u));
   assertTrue(u2.sameFile(u));
 }
  /** @tests {@link javax.sql.rowset.serial.SQLInputImpl#readURL()} */
  public void testReadURL() throws SQLException, MalformedURLException {
    URL url = new URL("http://www.apache.org");
    SerialDatalink link = new SerialDatalink(url);
    Object[] attributes = new Object[] {link};
    SQLInputImpl impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
    try {
      impl.readURL();
      fail("should throw SQLException");
    } catch (SQLException e) {
      // expected
    }

    try {
      impl.readURL();
      fail("should throw SQLException");
    } catch (SQLException e) {
      // expected
    }
  }