### Question:
Mappings extends ArrayList<Mapping> { public Mapping findByProxyUrl(String proxyUrl) { String noProtocol= substringAfter(proxyUrl, SEP); for (Mapping mapping: this) { if (startsWithIgnoreCase(noProtocol, mapping.proxy)) return mapping; } return null; }  static Mappings create(Mapping...mappings); Mapping findByProxyUrl(String proxyUrl); Mapping findByHiddenUrl(String hiddenUrl);  }### Answer:
@Test public void testfindByProxyUrl() { Mappings mappings= ModelFactory.MAPPINGS; assertEquals(mappings.get(0), mappings.findByProxyUrl("http: assertEquals(mappings.get(1), mappings.findByProxyUrl("http: }