title: Alternatives to the deprecated ExpectedException.none() in JUnit 4.13
body: <p>I am trying to use the  <code>@Rule</code> annotation with <code>ExpectedException</code></p>
  
  <p>The <strong>ExceptedException.none()</strong> method to initialize a variable type of ExceptedException says it has been deprecated what are the alternatives to initialize an object of the ExceptedException.
  Example:</p>
  
  <pre><code>public ExpectedException expectedException = ExpectedException.none();
  
  @Test
  public void testThrownException() throws Exception {
      expectedException.expect(CustomException.class);
      expectedException.expectMessage("Exception Message");
      ...
  }
  </code></pre>