pm.commitTransaction();
// test update
Criteria criteria = new Criteria();
criteria.addEqualTo("name", "XHTML9");
Query query = new QueryByCriteria(BaseMediaTypeEntry.class, criteria);
BaseMediaTypeEntry entry = (BaseMediaTypeEntry)pm.getObjectByQuery(query);
assertTrue(entry.getName().equals("XHTML9"));
System.out.println("id = " + entry.getId());
assertTrue(entry.getHidden() == false);
assertTrue(entry.getMimeType().equals("text.xhtml.9"));