@FixFor( "MODE-1679" )
@Test
public void shouldBeAbleToCreateAndExecuteJcrSql2QueryWithMultipleReferenceConstraintUsingStringIdentifier()
    throws RepositoryException {

    String id = session.getNode("/Other/NodeA[2]").getIdentifier();
    assertThat(id, is(notNullValue()));
    String sql = "SELECT [notion:multipleReferences] FROM [notion:typed] AS typed WHERE [notion:multipleReferences] = '" + id
                 + "'";
    Query query = session.getWorkspace().getQueryManager().createQuery(sql, Query.JCR_SQL2);
    QueryResult result = query.execute();
    validateQuery().rowCount(1).hasColumns("notion:multipleReferences").onEachRow(new Predicate() {
        @Override
        public void validate( int rowNumber,
                              Row row ) throws RepositoryException {
            assertValueIsNonNullReference(row, "notion:multipleReferences");
        }
    }).validate(query, result);
}