Author author1 = new Author();
author1.setName("author1");
author1.save();
Author author2 = new Author();
author2.setName("author2");
author2.save();
Author myauthor = AuthorManager.getCachedInstance(author1.getPrimaryKey());
assertNotNull("Primary key of Author1 should not be null", author1.getPrimaryKey());
assertNotNull("MyAuthor should not be null", myauthor);
assertTrue("Author1 and MyAuthor should point to the same cache instance", author1 == myauthor);