NMProfileManager { public void add(NMProfile profile) { LOGGER.info("Adding profile {} with CPU: {} and Memory: {}", profile.getName(), profile.getCpus(), profile.getMemory()); profiles.put(profile.getName(), profile); }  NMProfile get(String name); void add(NMProfile profile); boolean exists(String name); int numberOfProfiles(); @Override String toString();  }
@Test public void testAdd() throws Exception { NMProfileManager manager = this.getNMProfileManager(); assertEquals(5, manager.numberOfProfiles()); }