protected void configureObjectUnderTest(String name, Configurable configurable) throws Exception
{
MockControl configControl = MockControl
.createControl(Configuration.class);
Configuration configMock = (Configuration) configControl.getMock();
configControl.expectAndReturn(configMock.getLogger("jacorb.orb.socketfactory"), new NullLogger());
if (name.startsWith("testSetLocalhost"))
{
configControl.expectAndReturn(configMock.getAttribute("OAIAddr", ""), "localhost");
}