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