code: public void close() {
          try {
              verify();
          } finally {
              Sniffy.removeSpyReference(selfReference);
              closed = true;
              StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
              closeStackTrace = new StackTraceElement[stackTrace.length - 1];
              System.arraycopy(stackTrace, 1, closeStackTrace, 0, stackTrace.length - 1);
          }
      }
docs: Alias for {@link #verify()} method; it is useful for try-with-resource API:
  <pre>
  <code>
  {@literal @}Test
  public void testTryWithResourceApi() throws SQLException {
  final Connection connection = DriverManager.getConnection("sniffer:jdbc:h2:mem:", "sa", "sa");
  try (@SuppressWarnings("unused") Spy s = Sniffer.expectAtMostOnce();
  Statement statement = connection.createStatement()) {
  statement.execute("SELECT 1 FROM DUAL");
  }
  }
  }
  </code>
  </pre>
  @since 2.0