/**
   * @return Test suite.
   * @throws Exception Thrown in case of the failure.
   */
  public static TestSuite suite() throws Exception {
    TestSuite suite = new TestSuite("Spring Test Suite");

    suite.addTestSuite(GridSpringBeanSerializationSelfTest.class);
    suite.addTestSuite(GridFactorySelfTest.class);

    suite.addTest(IgniteResourceSelfTestSuite.suite());

    suite.addTest(new TestSuite(IgniteExcludeInConfigurationTest.class));

    // Tests moved to this suite since they require Spring functionality.
    suite.addTest(new TestSuite(GridP2PUserVersionChangeSelfTest.class));

    suite.addTest(new TestSuite(GridSpringCacheManagerSelfTest.class));

    suite.addTest(new TestSuite(IgniteDynamicCacheConfigTest.class));

    suite.addTest(new TestSuite(IgniteStartFromStreamConfigurationTest.class));

    suite.addTestSuite(CacheSpringStoreSessionListenerSelfTest.class);

    suite.addTestSuite(CacheJdbcBlobStoreFactorySelfTest.class);

    suite.addTestSuite(CacheJdbcPojoStoreFactorySelfTest.class);

    return suite;
  }
  /**
   * @return P2P tests suite.
   * @throws Exception If failed.
   */
  @SuppressWarnings({"ProhibitedExceptionDeclared"})
  public static TestSuite suite() throws Exception {
    TestSuite suite = new TestSuite("Ignite P2P Test Suite");

    suite.addTest(new TestSuite(GridP2PDoubleDeploymentSelfTest.class));
    suite.addTest(new TestSuite(GridP2PHotRedeploymentSelfTest.class));
    suite.addTest(new TestSuite(GridP2PClassLoadingSelfTest.class));
    suite.addTest(new TestSuite(GridP2PUndeploySelfTest.class));
    suite.addTest(new TestSuite(GridP2PRemoteClassLoadersSelfTest.class));
    suite.addTest(new TestSuite(GridP2PNodeLeftSelfTest.class));
    suite.addTest(new TestSuite(GridP2PDifferentClassLoaderSelfTest.class));
    suite.addTest(new TestSuite(GridP2PSameClassLoaderSelfTest.class));
    suite.addTest(new TestSuite(GridP2PJobClassLoaderSelfTest.class));
    suite.addTest(new TestSuite(GridP2PRecursionTaskSelfTest.class));
    suite.addTest(new TestSuite(GridP2PLocalDeploymentSelfTest.class));
    suite.addTest(new TestSuite(GridP2PTimeoutSelfTest.class));
    suite.addTest(new TestSuite(GridP2PMissedResourceCacheSizeSelfTest.class));
    suite.addTest(new TestSuite(GridP2PContinuousDeploymentSelfTest.class));
    suite.addTest(new TestSuite(GridDeploymentMessageCountSelfTest.class));

    return suite;
  }