@Test
    void testInvalidColumnName() {
        val impl = new MultiRowJdbcPersonAttributeDao(testDataSource, "SELECT netid, attr_name, attr_val FROM user_table WHERE {0}");
        impl.setQueryAttributeMapping(Map.of("uid", "netid"));

        impl.setUsernameAttributeProvider(new SimpleUsernameAttributeProvider("uid"));
        impl.setUnmappedUsernameAttribute("netid");

        val columnsToAttributes = new LinkedHashMap<String, Object>();
        columnsToAttributes.put("name", "firstName");

        columnsToAttributes.put("email", "emailAddress");
        impl.setResultAttributeMapping(columnsToAttributes);

        impl.setNameValueColumnMappings(Map.of("attr_nam", "attr_val"));
        assertThrows(Exception.class, () -> impl.getPerson("awp9"));

        impl.setNameValueColumnMappings(Map.of("attr_name", "attr_va"));
        assertThrows(Exception.class, () -> impl.getPerson("awp9"));
    }
Test the {@link MultiRowJdbcPersonAttributeDao} against a dummy DataSource.

@author andrew.petro@yale.edu
@author Eric Dalquist
@since 7.1.0
support/cas-server-support-jdbc-authentication/src/test/java/org/apereo/cas/jdbc/MultiRowJdbcPersonAttributeDaoTests.java