@Test
void logOperation() {

    final Logger logger = mock(Logger.class);
    when(logger.getLevel()).thenReturn(Level.DEBUG);
    doNothing().when(logger).debug(anyString());
    final String sql = "SELECT * FROM table WHERE id > ? AND age < ?";
    final List<Integer> values = new ArrayList<>();
    values.add(1);
    values.add(null);
    assertDoesNotThrow(() -> SqlQueryLoggerUtil.logOperation(logger, sql, values));
    when(logger.getLevel()).thenReturn(Level.INFO);
    assertDoesNotThrow(() -> SqlQueryLoggerUtil.logOperation(logger, sql, values));
}