### Question:
App { public String getSrcReplicationUrl(boolean includeUserDetails) { String protocol = "http"; StringBuilder builder = new StringBuilder(protocol); builder.append(": if (includeUserDetails) { if (src_username != null && !src_username.equals("")) { builder.append(src_username); builder.append(":").append(src_password); builder.append("@"); } } builder.append(src_host); int couchPort = src_port; if (couchPort <= 0) couchPort = 5984; builder.append(":").append(couchPort); builder.append("/"); builder.append(src_db); return builder.toString(); } App(String appName, String src_host, String src_db, int src_port, String src_username); void setLocalCouchManager(LocalCouch localCouchManager); void start(); String getSrcReplicationUrl(boolean includeUserDetails); CouchDbConnector getSrcConnector(); static void main(String[] args); static String[] parseUsernamePass(String arg);  }### Answer:
@Test public void testGetSrcReplicationUrl() { App app2 = new App("App Name", "choose.iriscouch.com", "choose", 81, null); String result = app2.getSrcReplicationUrl(false); assertEquals("http: }