/** @throws Exception If failed. */
  @SuppressWarnings("unchecked")
  public void testDeployment() throws Exception {
    Ignite ignite = startGrid(GRID_NAME);

    Class cls = getExternalClassLoader().loadClass(TEST_TASK_1);

    compute(ignite.cluster().forRemotes()).execute(cls, null);

    stopGrid(GRID_NAME);

    ignite = startGrid(GRID_NAME);

    cls = getExternalClassLoader().loadClass(TEST_TASK_2);

    compute(ignite.cluster().forRemotes()).execute(cls, null);

    stopGrid(GRID_NAME);
  }