@Test
  void invalidCode() {
    String codeHex =
        "0xEF0001 01000C 020003 000b 0002 0008 040000 00 00000000 02010001 01000002 60016002e30001e30002f3 01e4 60005360106000e4";
    final EOFLayout layout = EOFLayout.parseEOF(Bytes.fromHexString(codeHex.replace(" ", "")));
    CodeV1Validation validator = new CodeV1Validation(0xc000);
    String validationError = validator.validateCode(layout);

    assertThat(validationError)
        .isEqualTo(
            "Invalid EOF container - invalid_first_section_type want 0x80 (non-returning flag) has 0");
  }
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