@Test
public void testDebugNoArgs() throws SQLException {

    // given
    Logger logger = mock(Logger.class);
    when(logger.isDebugEnabled()).thenReturn(true);
    // when
    DataSource.debug(logger, "select x from y");
    // then
    verify(logger).isDebugEnabled();
    verify(logger).debug("select x from y");
    verifyNoMoreInteractions(logger);
}