Code example for ServiceRegistryBuilder

0
public class BasicCollectionBindingTests extends BaseUnitTestCase { 
	private StandardServiceRegistryImpl serviceRegistry; 
 
	@Before 
	public void setUp() { 
		serviceRegistry = (StandardServiceRegistryImpl) new ServiceRegistryBuilder().buildServiceRegistry(); 
	} 
 
	@After 
	public void tearDown() { 
		serviceRegistry.destroy(); 
	} 
 
//	@Test 
//	public void testAnnotations() { 
//		doTest( MetadataSourceProcessingOrder.ANNOTATIONS_FIRST ); 
//	} 
 
	@Test 
	public void testHbm() {