public void testToSimulateRenameInstanceByExternalProcess() throws Exception {
InstanceServiceImpl service = new InstanceServiceImpl();
File storageLocation = tempFolder.newFolder("instances");
service.setStorageLocation(storageLocation);
InstanceSettings settings = new InstanceSettings(8122, 1122, 44444, getName(), null, null, null);
service.createInstance(getName(), settings, true);
//to simulate the scenario that the instance name get changed by
//external process, likely the admin command CLI tool, which cause
//the instance storage file get updated, the AdminService should be