ModeSRS { public String getModeURI() throws SrsException { if (!srsList.isEmpty()) { return srsList.get(0).getKey(); } else { throw new SrsException("No SRS found. Check 'http: } } ModeSRS(); void search(Model model); List<Entry<String, Integer>> getSrsList(); HashMap<String, Integer> getSrsMap(); String getModeURI(); @Override String toString();  }
@Test public void testGetModeURI() { ModeSRS instance = new ModeSRS(); instance.search(MODEL); String expResult = "http: String result = instance.getModeURI(); assertEquals(expResult, result); }