@Test
public void testActionServiceUpgrade() throws Exception {

  Service service = createService();
  ServiceClient client = MockServiceClient.create(rule, service, true);
  //upgrade the service
  service.setVersion("v2");
  client.initiateUpgrade(service);
  Service fromFs = ServiceApiUtil.loadServiceUpgrade(rule.getFs(),
      service.getName(), service.getVersion());
  Assert.assertEquals(service.getName(), fromFs.getName());
  Assert.assertEquals(service.getVersion(), fromFs.getVersion());
  client.stop();
}