@Override protected void makeAttempt() throws ProtocolException, IOException { super.makeAttempt(); throw new ProtocolException("something happened", new MockHttpURLConnection(404)); } };
@Override protected void makeAttempt() throws ProtocolException, IOException { super.makeAttempt(); throw new ProtocolException("something happened", new MockHttpURLConnection(500)); } };