/*
* https://issues.jboss.org/browse/AS7-4269
*/
@Test
public void bindUnbindBind() throws Exception {
AS7BindingRegistry registry = new AS7BindingRegistry(container);
Object obj = new Object();
String name = UUID.randomUUID().toString();
assertNull(getBinderServiceFor(name));
assertTrue(registry.bind(name, obj));
assertNotNull(getBinderServiceFor(name));
registry.unbind(name);
assertNull(getBinderServiceFor(name));
assertTrue(registry.bind(name, obj));
assertNotNull(getBinderServiceFor(name));
}