title: dependsOnMethods which returns a value
body: <p>I have a trivial scenario in which a method is dependent on other
  method. And the other method returns a value -
  So the class looks as -</p>
  
  <p>public class Temp1 {</p>
  
  <pre><code>    @Test
      public Integer test1() {
              Reporter.log("&lt;b&gt;in test1&lt;/b&gt;");
              System.out.println("in test1");
  
              return null;
  
      }
  
      @Test(dependsOnMethods={"test1"})
      public void test2() {
              Reporter.log("in test2");
              System.out.println("in test2");
      }
  </code></pre>
  
  <p>}</p>
  
  <p>Now when I execute this, I encounter following exception -</p>
  
  <pre><code>org.testng.TestNGException:
  com.core.tests.Temp1.test2() is depending on nonexistent method
  com.core.tests.Temp1.test1
          at
  org.testng.internal.MethodHelper.findMethodsNamed(MethodHelper.java:
  143)
          at org.testng.internal.MethodHelper.topologicalSort(MethodHelper.java:
  472)
          at org.testng.internal.MethodHelper.sortMethods(MethodHelper.java:
  544)
          at
  org.testng.internal.MethodHelper.internalCollectAndOrderMethods(MethodHelper.java:
  77)
          at
  org.testng.internal.MethodHelper.collectAndOrderMethods(MethodHelper.java:
  49).........................
  </code></pre>
  
  <p>Though if there is no return type with method test1(), it works well.
  Is there any way to get through this?</p>
  
  <p>Thanks
  ~T </p>