code: public <T extends Exception> void toThrow(Class<T> expectedExceptionClass) {
  		Arguments.ensureNotNull(expectedExceptionClass, "expectedExceptionClass cannot be null");
  		String expectedExceptionName = expectedExceptionClass.getName();
  		Expectations.expectNotNull(this.exception, "Expected code block to throw %s but it did not throw an exception",
  				expectedExceptionName);
  		String exceptionName = this.exception.getClass().getName();
  		Expectations.expectTrue(expectedExceptionClass.isInstance(this.exception),
  				"Expected code block to throw %s but it did throw %s", expectedExceptionName, exceptionName);
  	}
docs: Checks if an exception of type {@code expectedExceptionClass} was thrown.
  <p>This method throws an {@code AssertionError} if:
  <ul>
  <li>no exception was thrown.</li>
  <li>the thrown exception is not an instance of {@code expectedExceptionClass}</li>
  </ul>
  @param expectedExceptionClass the expected exception