@Test
    void buildThrowsOnInvalidTag() throws ExpectationNotMetException {
        Assertions.assertThrows(ExpectationNotMetException.class, () -> {
            TraceFile traceFile = parseTraceFileFromFile(getClass().getResource("trace-file.json").toURI());
            traceFile.toBuilder()
                    .addShapeLink("com.amazonaws.snowball#Snowball",
                            ShapeLink
                                    .builder()
                                    .id("id")
                                    .type("TYPE")
                                    .addTag("fake_tag")
                                    .build())
                    .build();
        });
    }
Validate TraceFile use tests
validateTypesOrTags throws with invalid type, and throws with invalid tags
validateModel works with valid input, throws with invalid model/trace file pair
smithy-codegen-core/src/test/java/software/amazon/smithy/codegen/core/trace/TraceFileTest.java