@Override
    public Object getDateValue(final ResultSet resultSet, final int columnIndex) throws SQLException {
        if (isYearDataType(resultSet.getMetaData().getColumnTypeName(columnIndex))) {
            return resultSet.wasNull() ? null : resultSet.getObject(columnIndex);
        }
        return resultSet.getDate(columnIndex);
    }
@Test
    void assertGetDateValueWithNotYearDataType() throws SQLException {
        when(resultSet.getMetaData().getColumnTypeName(1)).thenReturn("DATE");
        when(resultSet.getDate(1)).thenReturn(new Date(0L));
        assertThat(dialectResultSetMapper.getDateValue(resultSet, 1), is(new Date(0L)));
    }