@SuppressWarnings("static-access")
@Test
public void testClosePreparedStatementWhenPreparedStatementIsNull() throws Exception {

    PreparedStatement preparedStatement = null;
    String errorMessage = "some message";
    dao.closePreparedStatement(preparedStatement, errorMessage);
    verify(loggerMock, times(0)).warn(anyString(), any(Throwable.class));
}