@Test
    void requireThatNormalizerInFirstPhaseIsChecked() throws ParseException {
        try {
            compileSchema("""
                          search test {
                            document test { }
                            rank-profile p1 {
                              first-phase {
                                expression: normalize_linear(nativeRank)
                              }
                            }
                          }
                          """);
            fail();
        } catch (IllegalArgumentException e) {
            assertEquals("Rank profile 'p1' is invalid: " +
                         "Cannot use normalize_linear(nativeRank) from first-phase expression, only valid in global-phase expression",
                         Exceptions.toMessageString(e));
        }
    }
Tests rank profiles with normalizers in bad places

@author arnej
config-model/src/test/java/com/yahoo/schema/NoNormalizersTestCase.java