@Test
void marshal_to_json() throws IOException {

    String id = "c670dd37-62fb-4e86-95ed-c1f4953aaeaa";
    String text = "Error message.\nDetails.";
    PortableErrorMessage portableErrorMessage = PortableErrorMessage.fromMessage(ErrorMessage.of(id, text));
    assertThat(json.write(portableErrorMessage)).isStrictlyEqualToJson("portable-error-message.json");
}