title: Why does google CodePro generate identical JUnit tests?
body: <p>When CodePro automatically generates tests for my methods, it often generates identical tests:</p>
  
  <pre><code>/**
   * Run the String getCategoryID() method test.
   *
   * @throws Exception
   *
   * @generatedBy CodePro at 17/11/11 11:44 AM
   */
  @Test
  public void testGetCategoryID_1()
      throws Exception {
      Category fixture = new Category("");
  
      String result = fixture.getCategoryID();
  
      // add additional test code here
      // An unexpected exception was thrown in user code while executing this test:
      //    java.lang.NullPointerException
      //       at java.io.StringReader.&lt;init&gt;(StringReader.java:33)
      //       at xpath.XPathRunner.&lt;init&gt;(XPathRunner.java:23)
      //       at trademefacade.Category.retrieveCategoryID(Category.java:95)
      //       at trademefacade.Category.getCategoryID(Category.java:68)
      assertNotNull(result);
  }
  
  /**
   * Run the String getCategoryID() method test.
   *
   * @throws Exception
   *
   * @generatedBy CodePro at 17/11/11 11:44 AM
   */
  @Test
  public void testGetCategoryID_2()
      throws Exception {
      Category fixture = new Category("");
  
      String result = fixture.getCategoryID();
  
      // add additional test code here
      // An unexpected exception was thrown in user code while executing this test:
      //    java.lang.NullPointerException
      //       at java.io.StringReader.&lt;init&gt;(StringReader.java:33)
      //       at xpath.XPathRunner.&lt;init&gt;(XPathRunner.java:23)
      //       at trademefacade.Category.retrieveCategoryID(Category.java:95)
      //       at trademefacade.Category.getCategoryID(Category.java:68)
      assertNotNull(result);
  }
  </code></pre>
  
  <p>These are tests for the following method:</p>
  
  <pre><code>public String getCategoryID() throws IOException,
          NoCategoryMatchException {
      categoryID = retrieveCategoryID();
      if (categoryID.equals("")) {
          throw new NoCategoryMatchException();
      }
      return categoryID;
  }
  </code></pre>
  
  <p>Am I using CodePro wrong? I thought the multiple tests were hints for me to implement two tests, but whenever I customise the tests, they just get rewritten when CodePro regenerates the tests.</p>