List<JSONObject> actual = requestOnSearchPeers.execute().jsons;
assertEquals(actual, new ArrayList<DistributedPeer>());
}
public void execute_onePeerThrowsAnotherSucceeds_getsSucceedingPeersJson() {
DistributedPeer failingPeer = mock(DistributedPeer.class);
DistributedPeer successfulPeer = mock(DistributedPeer.class);
JSONObject successfulJson = new JSONObject();
mockServiceToReturnPeers(failingPeer, successfulPeer);
when(requestOnSearchPeer.executeRequest(failingPeer)).thenThrow(
new RuntimeException());