title: In Intellij, how do I create a live template that adds import statements for tests?
body: <p>I'd like to be able to type <code>test</code> in a class file and then press tab and have that expand to:</p>
  
  <pre><code>@Test
  public void whenThen() {
  
  }
  </code></pre>
  
  <p>And also include appropriate imports.  This includes <code>import static junit.framework.Assert.*;</code>.</p>
  
  <p>How do I do this?  I'm using Intellij 12</p>