private EmbeddedConfiguration aliasConfig() {
   EmbeddedConfiguration configuration = Db4oEmbedded.newConfiguration();
   configuration
       .common()
       .addAlias(
           new TypeAlias(
               CrossPlatformServices.fullyQualifiedName(A.class),
               CrossPlatformServices.fullyQualifiedName(B.class)));
   return configuration;
 }
  public void test() throws Exception {

    store(new Original("original"));

    db().commit();

    Assert.areEqual(1, countOccurences(Original.class));

    // Rename messages are visible at level 1
    // fixture().config().messageLevel(1);

    ObjectClass oc = fixture().config().objectClass(Original.class);

    // allways rename fields first
    oc.objectField("originalName").rename("changedName");
    // we must use ReflectPlatform here as the string must include
    // the assembly name in .net
    oc.rename(CrossPlatformServices.fullyQualifiedName(Changed.class));

    reopen();

    Assert.areEqual(0, countOccurences(Original.class));
    Assert.areEqual(1, countOccurences(Changed.class));

    Changed changed = (Changed) retrieveOnlyInstance(Changed.class);

    Assert.areEqual("original", changed.changedName);
  }