@Before
public void setUp() throws Exception {
super.setUp();
DefaultTypeMappingRegistry reg = new DefaultTypeMappingRegistry();
config = reg.getConfiguration();
XMLTypeCreator creator = new XMLTypeCreator();
creator.setConfiguration(reg.getConfiguration());
Java5TypeCreator next = new Java5TypeCreator();
next.setConfiguration(reg.getConfiguration());
creator.setNextCreator(next);
reg.createDefaultMappings();
tm = (CustomTypeMapping)reg.getDefaultTypeMapping();
tm.setTypeCreator(creator);
}