/** Test register and remove a dummy profile. */
  public void testRegisterAndRemoveDummyProfile() {
    Profile testProfile =
        new Profile() {

          @Override
          public String getDisplayName() {
            return "Test Profile";
          }

          @Override
          public Collection getProfilePackages() throws ProfileException {
            return Collections.emptyList();
          }
        };

    manager.registerProfile(testProfile);
    assertTrue(manager.getRegisteredProfiles().contains(testProfile));

    manager.addToDefaultProfiles(testProfile);
    assertTrue(manager.getDefaultProfiles().contains(testProfile));

    manager.removeProfile(testProfile);
    assertFalse(manager.getRegisteredProfiles().contains(testProfile));
    assertFalse(manager.getDefaultProfiles().contains(testProfile));
  }
 /** Test remove the base UML profile. */
 public void testRemoveDefaultProfile() {
   Profile umlProfile = manager.getProfileForClass(ProfileUML.class.getName());
   assertNotNull(umlProfile);
   assertTrue(manager.getRegisteredProfiles().contains(umlProfile));
   assertTrue(manager.getDefaultProfiles().contains(umlProfile));
   manager.removeProfile(umlProfile);
   assertTrue(manager.getRegisteredProfiles().contains(umlProfile));
   assertTrue(manager.getDefaultProfiles().contains(umlProfile));
 }