NMProfileManager { public NMProfile get(String name) { return profiles.get(name); }  NMProfile get(String name); void add(NMProfile profile); boolean exists(String name); int numberOfProfiles(); @Override String toString();  }
@Test public void testRetrieval() throws Exception { NMProfileManager manager = this.getNMProfileManager(); assertEquals("profile1", manager.get("profile1").getName()); assertEquals("profile2", manager.get("profile2").getName()); assertEquals("profile3", manager.get("profile3").getName()); assertEquals("profile4", manager.get("profile4").getName()); assertEquals("profile5", manager.get("profile5").getName()); }