import javax.net.ssl.TrustManager;
@RunWith(AndroidJUnit4.class)
abstract public class AbstractHURLTest {
abstract protected String getUrl();
abstract protected TrustManagerBuilder getBuilder()
<BUG>throws Exception;
@Test</BUG>
public void testRequest() throws Exception {
HttpURLConnection c=
<BUG>(HttpURLConnection)new URL(getUrl()).openConnection();
if (c instanceof HttpsURLConnection) {</BUG>
TrustManagerBuilder builder=getBuilder();

import javax.net.ssl.TrustManager;
@RunWith(AndroidJUnit4.class)
abstract public class AbstractHURLTest {
abstract protected String getUrl();
abstract protected TrustManagerBuilder getBuilder()
throws Exception;
private boolean receivedChain=false;
@Test
public void testRequest() throws Exception {
HttpURLConnection c=
(HttpURLConnection)new URL(getUrl()).openConnection();
boolean hasBuilder=false;
if (c instanceof HttpsURLConnection) {
TrustManagerBuilder builder=getBuilder();
