BambooPlugin implements VisuwallPlugin<BambooConnection> { @Override public BambooConnection getConnection(URL url, Map<String, String> properties) { BambooConnection connection = new BambooConnection(); String login = ""; String password = ""; if (properties != null) { login = properties.get("login"); password = properties.get("password"); } connection.connect(url.toString(), login, password); return connection; }  @Override BambooConnection getConnection(URL url, Map<String, String> properties); @Override Class<BambooConnection> getConnectionClass(); @Override String getName(); @Override float getVersion(); @Override SoftwareId getSoftwareId(URL url, Map<String, String> properties); @Override String toString(); @Override Map<String, String> getPropertiesWithDefaultValue();  }
@Test public void should_get_a_valid_connection() throws MalformedURLException { BambooConnection connection = bamboo.getConnection(new URL("http: assertFalse(connection.isClosed()); }