private static void assertValidation(
      final String error,
      final Bytes codeBytes,
      final CodeSection thisCodeSection,
      final EOFLayout eofLayout) {
    CodeV1Validation validator = new CodeV1Validation(0xc000);
    final String validationError = validator.validateCode(codeBytes, thisCodeSection, eofLayout);
    if (error == null) {
      assertThat(validationError).isNull();
    } else {
      assertThat(validationError).startsWith(error);
    }
  }
These tests focus on code-only validations, which are checked within the code runs themselves.
Tests that depend on the EOF container (such as CallF into other sections) are in EOFLayoutTest.
evm/src/test/java/org/hyperledger/besu/evm/code/CodeV1Test.java