### Question:
GaianOCFConnector extends OCFDatabaseConnector { public void setDBUrl(String userId ) throws ConnectionCheckedException{ final String methodName="setDBUrl"; String dbURL = dburlPrefix + dburlServeraddress + ":" + dburlServerport + "/" + dburlDatabase + ";create="+String.valueOf(create) + ";user=" + userId + ";password="+proxyPwd+";proxy-user=" +proxyUser+";proxy-pwd="+proxyPwd; log.debug(dbURL); this.setUrl(dbURL); } GaianOCFConnector();  GaianOCFConnector(String dburlPrefix, String  dburlServeraddress, String dburlServerport, String  dburlDatabase, String proxyUser, String  proxyPwd, boolean create); void setDBUrl(String userId ); @Override Connection connect(String userId); @Override ResultSet executeQuery(String query); @Override void disconnect();  }### Answer:
@Test void setDBUrl() { String url="jdbc:derby: "password=passw0rd;proxy-user=gaiandb;proxy-pwd=passw0rd"; try { gaianOCFConnector.setDBUrl(userId); } catch (ConnectionCheckedException e) { e.printStackTrace(); } assertEquals(url,gaianOCFConnector.getUrl()); }