@Test
public void testServiceMigrateCallNotAdmin() throws Exception {

  ViewRegistry viewRegistry = createNiceMock(ViewRegistry.class);
  expect(viewRegistry.checkAdmin()).andReturn(false).anyTimes();
  replay(viewRegistry);
  ViewRegistry.initInstance(viewRegistry);
  ViewDataMigrationService service = new ViewDataMigrationService(viewName, version1, instanceName);
  thrown.expect(WebApplicationException.class);
  service.migrateData(version2, instanceName);
}