title: How to create a test directory in Intellij 13?
body: <p>I'm an Intellij noob using v13.  </p>
  
  <p>I have a simple java project (default) structure that looks like:</p>
  
  <pre><code>  [] .idea
    [] src
       [] com.test
            mytestClass1
            mytestClass2
  </code></pre>
  
  <p>Now, I want to write a simple test and I'd like to put that code in  /src/test/java directory.  So I decided to change my project format so that it looks like:</p>
  
  <pre><code> [] .idea
     [] src
       [] main
          [] java    
          [] resources
       [] test
          [] java    
          [] resources
  </code></pre>
  
  <p>After I create that structure, I'd obviously like to move my current classes in src to the main/java/com...  structure.</p>
  
  <p>I've read all about <a href="https://www.jetbrains.com/idea/help/configuring-content-roots.html">content roots and project structure</a>.  The info even states, "Folders within content roots can be assigned to the following categories: sources, test sources, generated sources, generated test sources and excluded folders (in Java modules - also resources and test resources)" </p>
  
  <p>I've tried right-clicking on the project name then New -> Directory then entering "src/main/java" (also tried it with a leading slash) but when I right-click my new directory and select "<strong>Mark Directory As</strong>" the only option is <strong>Excluded</strong>.</p>
  
  <p>If I create a new directory in the root, I can select <strong>Mark Directory As Test Sources Root</strong> but it still hangs off the root like:</p>
  
  <pre><code>  [] .idea
    [] java
    [] src
       [] com.test
  </code></pre>
  
  <p>Can someone please tell me how to migrate to my desired structure?        </p>