Code example for ServiceRegistryBuilder

0
	private StandardServiceRegistryImpl serviceRegistry; 
	private ClassLoaderService classLoaderService; 
 
	@Before 
	public void setUp() { 
		serviceRegistry = (StandardServiceRegistryImpl) new ServiceRegistryBuilder().buildServiceRegistry(); 
		classLoaderService = serviceRegistry.getService( ClassLoaderService.class ); 
	} 
 
	@After 
	public void tearDown() { 
		serviceRegistry.destroy(); 
	} 
 
	@Test 
	public void testGetMemberAnnotations() { 
		class Foo { 
			@Column 
			@Basic 
			private String bar;