@Test(expected = IllegalStateException.class)
public void testCannotStartServerWhenDefaultEnvironmentIsEmptyString()
        throws TTransportException, MalformedObjectNameException,
        InstanceAlreadyExistsException, MBeanRegistrationException,
        NotCompliantMBeanException {

    String oldDefault = GlobalState.DEFAULT_ENVIRONMENT;
    try {
        GlobalState.DEFAULT_ENVIRONMENT = "$$";
        ConcourseServer.create(1, "buffer", "db");
    }
    finally {
        GlobalState.DEFAULT_ENVIRONMENT = oldDefault;
    }
}