@Test(expected = ConfigurationException.class)
public void testGetUDDIClientNoConfig() throws Exception {

     System.out.println("testGetUDDIClientNoConfig");
     
     String random = UUID.randomUUID().toString();
     ServletContext req = createNiceMock(ServletContext.class);
     
     req.setAttribute(JUDDI_CLIENT_NAME, null);
     expect(req.getInitParameter(WebHelper.JUDDI_CLIENT_NAME)).andReturn(null).times(0, 1);
     req.setAttribute(UDDI_CLIENT_CONFIG_FILE, random);
     expect(req.getInitParameter(WebHelper.UDDI_CLIENT_CONFIG_FILE)).andReturn(random).times(0, 1);
     
     
     
     
          
          
     //using default config
     //     expect(req.getInitParameter(WebHelper.UDDI_CLIENT_NAME)).andReturn(null).times(0, 2);
     //   expect(req.getInitParameter(WebHelper.UDDI_CLIENT_CONFIG_FILE)).andReturn(null).times(0, 2);
     // expect(req.getInitParameter(WebHelper.JUDDI_CLIENT_TRANSPORT)).andReturn(null).times(0, 2);
     //expect(req.getAttribute(WebHelper.JUDDI_CLIENT_NAME)).andReturn(null).times(0, 2);
     //using default config
     // expect(req.getAttribute(WebHelper.UDDI_CLIENT_NAME)).andReturn(null).times(0, 2);
     //expect(req.getAttribute(WebHelper.UDDI_CLIENT_CONFIG_FILE)).andReturn(null).times(0, 2);
     //expect(req.getAttribute(WebHelper.JUDDI_CLIENT_TRANSPORT)).andReturn(null).times(0, 2);
     replay(req);
     UDDIClient result = WebHelper.getUDDIClient(req);
     Assert.assertNotNull(result);
}