MySQLStatementMemoryStrictlyFetchSizeSetter implements StatementMemoryStrictlyFetchSizeSetter { @Override public void setFetchSize(final Statement statement) throws SQLException { statement.setFetchSize(Integer.MIN_VALUE); }  @Override void setFetchSize(final Statement statement); @Override String getType();  }
@Test public void assertSetFetchSize() throws SQLException { Statement statement = mock(Statement.class); new MySQLStatementMemoryStrictlyFetchSizeSetter().setFetchSize(statement); verify(statement, times(1)).setFetchSize(Integer.MIN_VALUE); }