@Test
void buildThrowsWithNoSmithyTrace() {

    Assertions.assertThrows(IllegalStateException.class, () -> {
        TraceFile traceFile = parseTraceFileFromFile(getClass().getResource("trace-file.json").toURI());
        //set smithyTrace to null before writing and parsing again
        traceFile.toBuilder().smithyTrace(null).build();
    });
}