public void testToSimulateRenameInstanceByExternalProcess() throws Exception {
AdminServiceImpl service = new AdminServiceImpl();
File storageLocation = new File("target/instances/" + System.currentTimeMillis());
service.setStorageLocation(storageLocation);
InstanceSettings settings = new InstanceSettings(8122, 1122, 44444, getName(), null, null, null);
service.createInstance(getName(), settings);
//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