@Test
public void Test2_NoAutoRegisterAndShortCircuitReceive() throws Exception {
log.info("Test2_NoAutoRegisterAndShortCircuitReceive");
Test2_NoAutoRegisterAndShortCircuitReceive_ = false;
UDDIClient c = new UDDIClient("META-INF/uddi-subcallback1.xml");
c.start();
UDDIClerk clerk = c.getClerk("default");
// TModel createKeyGenator = UDDIClerk.createKeyGenator("uddi:org.apache.juddi:test:keygenerator", "Test domain", "en");
//clerk.register(createKeyGenator);
BindingTemplate start = SubscriptionCallbackListener.start(c, "default");
Assert.assertNotNull(start);
//Assert.assertNotNull(start.getBindingKey());
SubscriptionCallbackListener.registerCallback(this);
Assert.assertNotNull(SubscriptionCallbackListener.getInstance());
SubscriptionCallbackListener.getInstance().notifySubscriptionListener(new NotifySubscriptionListener());
SubscriptionCallbackListener.stop(c, "default", start.getBindingKey());
c.stop();
Assert.assertTrue(Test2_NoAutoRegisterAndShortCircuitReceive_);
}